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!

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...