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!

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...

Edge Processor Scaling, Energy & Manufacturing Use Cases, and More New Articles on ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...