Dashboards & Visualizations

Why won't drilling down to multiple complex external URLs do nothing?

compuchip
Engager

I have tried multiple methods to get a complex URL to work as a redirect. Unfortunately, there are a lot of different base URLs in my actual data so using multiple conditions is probably not a good option. It seems as though it wants no "/" in the URL field, only parameters.

<dashboard>
<label>URL Test</label>
<row>
<panel>
<table>
<search>
<query>| makeresults count=3
| streamstats count
| eval url = case(count=1,"https://bing.com",count=2,"https://google.com",count=3,"https://nvd.nist.gov/vuln/search/results?form_type=Advanced&amp;results_type=overview&amp;search_type=all&amp;cpe_vendor=cpe%3A%2F%3Aapache&amp;cpe_product=cpe%3A%2F%3Aapache%3Alog4net&amp;cpe_version=cpe%3A%2F%3Aapache%3Alog4net%3A1.2.9.0")
| eval site = case(count=1,"bing",count=2,"google",count=3,"nist")
| table site, url</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
<option name="drilldown">cell</option>
<option name="refresh.display">progressbar</option>
<fields>["site"]</fields>
<drilldown>
<eval token="u">replace($row.url$, "https://", ""</eval>
<link target="_blank">
<![CDATA[ https://$u$ ]]>
</link>
</drilldown>
</table>
</panel>
</row>
</dashboard>

 

Labels (2)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

You need to make sure your $u$ token does not get encoded, so use the |n in the token

<![CDATA[ https://$u|n$ ]]>

 See token filters

https://docs.splunk.com/Documentation/Splunk/9.0.3/Viz/tokens#Token_filters

 

View solution in original post

compuchip
Engager

Thank you so much!  I had seen the similar items, but nobody had called out the functionality of what it was called or what it did. Your link was also very helpful. Thank you so much! I now am a bit smarter than I was which is a good way to start a Friday morning!

0 Karma

bowesmana
SplunkTrust
SplunkTrust

You need to make sure your $u$ token does not get encoded, so use the |n in the token

<![CDATA[ https://$u|n$ ]]>

 See token filters

https://docs.splunk.com/Documentation/Splunk/9.0.3/Viz/tokens#Token_filters

 

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Rounding off the Splunk Dashboard Contest

What does a contest-winning Splunk dashboard look like? In this case, it isn't in a browser tab at all. It ...

A Four Part Event Series: AI + Observability: AI Agents, LLMs, Apps, & Infrastructure

AI &#43; Observability: AI Agents, LLMs, Apps, & Infrastructure The rapid evolution of artificial intelligence ...