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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...