Alerting

Is there any way to pass the all the values of a column from 1st to 2nd panel?

skjaki786
Observer

this one didn't work

<done>
<condition match="$job.resultCount$==0">
<set token="Tokent">0</set>
</condition>
<condition>
<set token="Tokent">$row.device_ip_address.value$</set>
</condition>
</done>

below one is only giving 1st value of the field... I need to show rest of the values of device_ip_address

<done>
<condition match="$job.resultCount$==0">
<set token="Tokent">0</set>
</condition>
<condition>
<set token="Tokent">$result.device_ip_address$</set>
</condition>
</done>

Labels (1)
Tags (1)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

The drilldown can't pass multiple rows of a table, but you could do this in a couple of ways

1. Create a stats values() of the column you want and just do not display it - using the <fields> XML element - it will still exist in every row as a field. Pass this field as a multi value field.

2. When you click the table, have a second search that uses the first search as a base search and runs and does the stats values(column) and another <done> clause to set the token.

0 Karma

skjaki786
Observer

Thanks for the reply. But I forgot to mention that both are having different indexes> I am not able to use base search here.

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Yes, you can because the second search using the base is simply to create the single row result, which you can then turn into a token, e.g.

<search id="base">
  <query>
bla
  </query>
</search>

<table depends="$hidden$">
  <search base="base">
    <query>
| stats values(device_ip_address) as device_ip_address
| eval device_ip_address=mvjoin(device_ip_address, ",")
    </query>
  </search>
  <done>
    <set token="mytoken">$result.device_ip_address$</set>
  </done>
</table>

and then your other search can use $mytoken$ as needed - use the eval in the second search to make the format of the device_ip_address values what you need it to be for the other search.

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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...