<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using token from previous populating search within a second populating search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122879#M33156</link>
    <description>&lt;P&gt;Try this in dropdown xml for Device&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="Device"&amp;gt;
    &amp;lt;label&amp;gt;Device&amp;lt;/label&amp;gt;
    &amp;lt;choice value="*"&amp;gt;All Devices&amp;lt;/choice&amp;gt;
    &amp;lt;populatingSearch fieldForValue="DeviceName" fieldForLabel="DeviceName"&amp;gt;
          &amp;lt;![CDATA[index=my_index sourcetype=syslog earliest=-60m |rex field=Location "All Locations\#(?&amp;lt;aa&amp;gt;\w+)" | search aa="$Location$" | stats count by DeviceName ]]&amp;gt;
    &amp;lt;/populatingSearch&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 27 Jun 2014 17:46:02 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-06-27T17:46:02Z</dc:date>
    <item>
      <title>Using token from previous populating search within a second populating search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122878#M33155</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am currently using a populating search for several dropdowns in a dashboard.  I have one for location, device name, time range etc.  I am trying to set up the dashboard in such a way that the location selected will then be plugged into my other populating searches (device name for instance), so only devices for the given location will be showed as options in the dropdown.  Is this possible?&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
Location&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;input type="dropdown" token="Location"&amp;gt;
    &amp;lt;label&amp;gt;Location&amp;lt;/label&amp;gt;
    &amp;lt;choice value="*"&amp;gt;All Location&amp;lt;/choice&amp;gt;
    &amp;lt;populatingSearch fieldForValue="aa" fieldForLabel="aa"&amp;gt;
          &amp;lt;![CDATA[index=my_index sourcetype=syslog earliest=-60m |rex field=Location "All Locations\#(?&amp;lt;aa&amp;gt;\w+)" | stats count by aa]]&amp;gt;
    &amp;lt;/populatingSearch&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Devices&lt;BR /&gt;
(Populating search will show all devices regardless of location.  I would like this to show only devices in the location I specify in the previous dropdown)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="Device"&amp;gt;
    &amp;lt;label&amp;gt;Device&amp;lt;/label&amp;gt;
    &amp;lt;choice value="*"&amp;gt;All Devices&amp;lt;/choice&amp;gt;
    &amp;lt;populatingSearch fieldForValue="DeviceName" fieldForLabel="DeviceName"&amp;gt;
          &amp;lt;![CDATA[index=my_index sourcetype=syslog earliest=-60m | stats count by DeviceName]]&amp;gt;
    &amp;lt;/populatingSearch&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Jun 2014 17:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122878#M33155</guid>
      <dc:creator>bcarr12</dc:creator>
      <dc:date>2014-06-27T17:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using token from previous populating search within a second populating search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122879#M33156</link>
      <description>&lt;P&gt;Try this in dropdown xml for Device&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="Device"&amp;gt;
    &amp;lt;label&amp;gt;Device&amp;lt;/label&amp;gt;
    &amp;lt;choice value="*"&amp;gt;All Devices&amp;lt;/choice&amp;gt;
    &amp;lt;populatingSearch fieldForValue="DeviceName" fieldForLabel="DeviceName"&amp;gt;
          &amp;lt;![CDATA[index=my_index sourcetype=syslog earliest=-60m |rex field=Location "All Locations\#(?&amp;lt;aa&amp;gt;\w+)" | search aa="$Location$" | stats count by DeviceName ]]&amp;gt;
    &amp;lt;/populatingSearch&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Jun 2014 17:46:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122879#M33156</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-27T17:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using token from previous populating search within a second populating search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122880#M33157</link>
      <description>&lt;P&gt;Hmm, that doesn't seem to be working...now the dropdown only shows "All Devices".  I think the problem is that the dropdowns all populate the moment the dashboard starts, how do I tell the Device to only populate once I have specified Location in the prior dropdown?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2014 18:20:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122880#M33157</guid>
      <dc:creator>bcarr12</dc:creator>
      <dc:date>2014-06-27T18:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using token from previous populating search within a second populating search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122881#M33158</link>
      <description>&lt;P&gt;The dropdown should show "All Devices" only at page load. Does it show "All Devices" only event after selecting a Location?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2014 19:05:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122881#M33158</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-27T19:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using token from previous populating search within a second populating search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122882#M33159</link>
      <description>&lt;P&gt;It shows "All Devices" after page load and it remains that way after I have selected a location as well.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2014 16:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122882#M33159</guid>
      <dc:creator>bcarr12</dc:creator>
      <dc:date>2014-06-30T16:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using token from previous populating search within a second populating search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122883#M33160</link>
      <description>&lt;P&gt;What version of Splunk are you using?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2014 17:32:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122883#M33160</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-30T17:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using token from previous populating search within a second populating search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122884#M33161</link>
      <description>&lt;P&gt;I am using 4.3.5 right now but hope to be on 6.1 soon which I am sure will probably resolve issues like this one!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2014 18:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-token-from-previous-populating-search-within-a-second/m-p/122884#M33161</guid>
      <dc:creator>bcarr12</dc:creator>
      <dc:date>2014-07-01T18:33:30Z</dc:date>
    </item>
  </channel>
</rss>

