Splunk Search

Passing 2 values Drilldown

behymejt2012
Path Finder

Hi Everyone,

While using Simple XML, I am able to easily pass a value from a table row or from an actual form. The problem I have is when I try and pass 2 values through the drill down link, here is what I am trying to do:

www.example.com?row.Type=$click.value$ form.example1=$form.example1$

The values pass through to the new form, but its all combined together and cannot collect the unique values. I am not sure if I need to add an & symbol between the two values to properly separate them.

Tags (2)
0 Karma

LukeMurphey
Champion

I think you may just missing an amperstand between $click.value$ and form.example1:

<link>www.example.com?row.Type=$click.value$&amp;form.example1=$form.example1$</link>

Make sure to use the XML entity for the amperstand (and other enitities) or use a CDATA block:

<link><![CDATA[www.example.com?row.Type=$click.value$&form.example1=$form.example1$]]></link>

LukeMurphey
Champion

Try using the entity name: http://www.w3schools.com/tags/ref_entities.asp

I'll update the answer accordingly.

0 Karma

behymejt2012
Path Finder

Thanks for the response, the problem is that you cannot add an amperstand in the xml. It throws the following error:

"Encountered the following error while trying to update: In handler 'views': Error parsing XML on line 27: xmlParseEntityRef: no name"

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

ATTENTION: We’re Moving! (AGAIN!)

The Splunk Community Slack is undergoing a system migration to keep our workspace secure and ...

Deep Dive: Optimizing Telemetry Pipelines in Splunk Observability Cloud

In this session, we will peel back the layers of Splunk Observability Cloud’s cost-optimization features. ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...