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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

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