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

 

Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...