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
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...