Splunk Search

drill down with drop down output and clicked chart value

smolcj
Builder

hi all,
i have a dropdown box populating sources and a chart displaying severity of the source, as i used eval command i am not able to get a drill down from the chart. i am using simple xml
how to do this search using link option in drill down

please help me with redirect query or path to be used in link,,, how to include source variable from drop down box and click.value in option link

<form>
 <fieldset> 




index=main sourcetype=type |fields source




    <chart>
  <searchString>index=main source=$sources$   | chart count over severity | eval red=if(severity=="ERROR",count,0) | eval green = if(severity=="INFO",count,0)| fields - count
        </searchString>
        <drilldown>
    <link>/app/search/flashtimeline?q=source=$row.sources$|search severity</link>


Count of Tracing level
column
stacked

{"red":0xFF0000,"green":0x73A550}

        <option name="charting.legend.placement">none</option>
  <option name="charting.legend.placement">none</option>
</chart>

please help with the search query here forthe link option
please help
Thank you

Tags (2)
0 Karma
1 Solution

Leo
Splunk Employee
Splunk Employee

You can add $form.< token>$ to your search query to get the value of the dropdown. In your case it would be $form.sources$

For click value there are two options: $click.value$ would return the value of X axis or the first column, $click.value2$ would return the value of Y axis or the value in the column you clicked upon.

View solution in original post

Leo
Splunk Employee
Splunk Employee

You can add $form.< token>$ to your search query to get the value of the dropdown. In your case it would be $form.sources$

For click value there are two options: $click.value$ would return the value of X axis or the first column, $click.value2$ would return the value of Y axis or the value in the column you clicked upon.

smolcj
Builder

Thank you Leo

0 Karma

Leo
Splunk Employee
Splunk Employee
0 Karma

smolcj
Builder

Thanks Leo,
/app/myapp/flashtimeline?q=$form.sources$|search severity=$click.value$
worked fine, but is this possible with multi valued outputs.

0 Karma

smolcj
Builder

Somebody please help 😞 i am stuck here ....

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!

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 ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...