Dashboards & Visualizations

Why am I getting a syntax error with the "&" character for a drilldown in my XML?

renanprado96
Path Finder

I want to pass two parameters the URL with drilldown, but when I put &, the code is in red.
Does anyone know why? And how to solve?

alt text

Thanks !!!

0 Karma
1 Solution

sundareshr
Legend

You need to escape the & character or enclose the URL in CDATA tag. Like this

<link>
<![CDATA[
  /app/search/form_for_drilldown?form.sourcetype=$row.sourcetype$&earliest=$earliest$&latest=$latest$
]]>
</link>

View solution in original post

sundareshr
Legend

You need to escape the & character or enclose the URL in CDATA tag. Like this

<link>
<![CDATA[
  /app/search/form_for_drilldown?form.sourcetype=$row.sourcetype$&earliest=$earliest$&latest=$latest$
]]>
</link>

renanprado96
Path Finder

Thank you!!!!

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...