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!

Free Professional Services for .conf26 Attendees

This year at .conf26, we are doing something a little different. We are bringing the best minds from ...

Defend at Machine Speed: Your Guide to Security Sessions at .conf26

Splunk .conf26   With threats moving at machine speed and attack surfaces expanding across hybrid ...

Where Innovation Takes Flight: The Splunk4Aviation Flight Sim Lands at .conf26

If you hear someone at .conf26 shouting "gear down, GEAR DOWN" across the show floor, you have found us.  The ...