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!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...