Splunk Enterprise Security

How do I drilldown to a unique URL using a table row's unique token?

jsven7
Communicator

Situation:

  • I have a panel. The panel creates a token for me from a field I extract from the search. In the same panel I create a URL that enables me to "drilldown".



    Open Tickets




    search...
    | table "ticket_num", "Creation Date", "other_field", "other_field"

    $field3.earliest$
    $field3.latest$


    $result.ticket_num$


    5
    none
    row
    true

           <eval>replace($row.url$, "http://", ""</eval>
           <link target="_blank">
             <![CDATA[ https://other.tool/$ticket_num$ ]]>
           </link>
         </drilldown>
    
      </table>
    </panel>
    

  • My table appears to work nicely where each row represents unique open tickets.

  • Problem:

    • All rows, upon clicking, "drilldown" only to the first row's "ticket_num". Which I think makes sense.

    Question:

    • Can you pleas share if its possible with ES simple XML and without any other add-on to modify the panel so that, upon clicking a row, I "drilldown" to the respective row's unique "ticket_num"?

0 Karma
1 Solution

memarshall63
Communicator

You'll likely need some form of this:

<drilldown>
  <link target="_blank">/app/some_app/some_dashboard?token=$click.value$&amp;token2=$row.fieldname$</link>
</drilldown>

https://docs.splunk.com/Documentation/Splunk/8.0.2/Viz/tokens

View solution in original post

memarshall63
Communicator

You'll likely need some form of this:

<drilldown>
  <link target="_blank">/app/some_app/some_dashboard?token=$click.value$&amp;token2=$row.fieldname$</link>
</drilldown>

https://docs.splunk.com/Documentation/Splunk/8.0.2/Viz/tokens

jsven7
Communicator

@memarshall63 - thanks so much for your time to write this comment. This led me down the right path! The below appears to create a unique URL per row that is clicked. Thanks so much.

            <link target="_blank">
              <![CDATA[ https://other.tool/$click.value$ ]]>
            </link>
0 Karma

memarshall63
Communicator

No problem. I believe $click.value$ will give you the field that is clicked. However, you may want to use a specific field regardless of where on the row the click occurs. When that occurs I think $row.$ is the choice for that behavior. At any rate... good luck.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...