<?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: Drilldown  with $click$ values not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366535#M108129</link>
    <description>&lt;P&gt;The problem is that it's an AWS t2 micro instance &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; and can't cope with the 10k results, just locks up the browser.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=... sourcetype=...
| stats count by Description
| sort Description
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've used them many times before and you're right, it's the normal way to go. As to "why..." - my performance analysis of Splunk is not great - other than the golden rule of never use "transaction or join" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2017 10:08:27 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2017-05-08T10:08:27Z</dc:date>
    <item>
      <title>Drilldown  with $click$ values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366531#M108125</link>
      <description>&lt;P&gt;I have a dashboard where I display a list of wines. I want to be able to incrementally add the wine name to a search criteria so the user can select the wines they are interested in.  The wine name field is "Description", so I have the query like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=... $wines$ 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;$wines$ is unset the first time around and this drilldown will work for the first click&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;set token="wines"&amp;gt;$click.name2$=$click.value2|s$&amp;lt;/set&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which sets Description="wine", depending on the click, but of course this overwrites $wines$ each click. In order to build up the criteria I tried using eval/if&lt;/P&gt;

&lt;P&gt;I tried&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;eval token="wines"&amp;gt;if(match($wines$, "Description"), "AlreadySet", "$click.name2$"="$click.value2|s$")&amp;lt;/eval&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but this results in $wines$ being 'false'.&lt;/P&gt;

&lt;P&gt;I know that if I just put "XX" in the else part of the if, it returns that. I have tried no quotes, double $ sign and so, but I can't make it work. I also tried  elements with no luck.&lt;/P&gt;

&lt;P&gt;Any ideas on how I can achieve what I want, i.e. to ultimately get&lt;/P&gt;

&lt;P&gt;Description="Wine 1" OR Description="Wine 2" OR Description="Wine 3"...&lt;/P&gt;

&lt;P&gt;like a standard multi select dropdown. I'm not using that multi select as it's too slow - there are 10,000 wines...&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2017 22:39:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366531#M108125</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2017-05-06T22:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown  with $click$ values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366532#M108126</link>
      <description>&lt;P&gt;Why is multi select too slow? That's the way to do it in Splunk in my humble opion.  what search did you use to populate multiselect?&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 12:48:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366532#M108126</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-05-07T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown  with $click$ values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366533#M108127</link>
      <description>&lt;P&gt;New version has drill down in UI that would help you&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 12:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366533#M108127</guid>
      <dc:creator>puneethgowda</dc:creator>
      <dc:date>2017-05-07T12:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown  with $click$ values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366534#M108128</link>
      <description>&lt;P&gt;I did something similar when I needed to search tens-of-thousands of software packages.  I used &lt;EM&gt;2&lt;/EM&gt; controls instead of one.  The unusual control was a RegEx based pre-filter on the main multi-select control:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;label&amp;gt;Demo for whittling down a HUGE selection list to manageable chunk&amp;lt;/label&amp;gt;
&amp;lt;description&amp;gt;This is not the exact answer that you were seeking, but may be a good alternative&amp;lt;/description&amp;gt;
&amp;lt;fieldset autorun="false" submitButton="true"&amp;gt;
  &amp;lt;input type="text" token="filter_token" searchWhenChanged="false"&amp;gt;
    &amp;lt;label&amp;gt;RegEx filter for Wine Dropdown --&amp;amp;gt;&amp;lt;/label&amp;gt;
    &amp;lt;default&amp;gt;.&amp;lt;/default&amp;gt;
  &amp;lt;/input&amp;gt;
  &amp;lt;input type="dropdown" token="wine_token" searchWhenChanged="false"&amp;gt;
    &amp;lt;label&amp;gt;(&amp;amp;lt;-- filtered) Wine Selector:&amp;lt;/label&amp;gt;
    &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
    &amp;lt;fieldForLabel&amp;gt;wine&amp;lt;/fieldForLabel&amp;gt;
    &amp;lt;fieldForValue&amp;gt;wine&amp;lt;/fieldForValue&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;| inputcsv winelist.csv | regex wine="(?i)$filter_token$" | table wine&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;-1s&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
  &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;EM&gt;really&lt;/EM&gt; nice thing about this is that it very natural and only the geeks who grok RegEx need to know it is RegEx under the hood; the plebes will just type &lt;CODE&gt;white&lt;/CODE&gt; and it will "just work".  They will need to be taught to do &lt;CODE&gt;red|white&lt;/CODE&gt; and that will be good for 90+% of all users/searches and for those who need more, you get to geek mentor them into RegEx.&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 13:28:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366534#M108128</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-07T13:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown  with $click$ values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366535#M108129</link>
      <description>&lt;P&gt;The problem is that it's an AWS t2 micro instance &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; and can't cope with the 10k results, just locks up the browser.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=... sourcetype=...
| stats count by Description
| sort Description
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've used them many times before and you're right, it's the normal way to go. As to "why..." - my performance analysis of Splunk is not great - other than the golden rule of never use "transaction or join" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 10:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366535#M108129</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2017-05-08T10:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown  with $click$ values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366536#M108130</link>
      <description>&lt;P&gt;I like this as a cool idea. I've got a couple of filters, but was wondering how to make them more powerful as they are currently just raw text strings, so supporting regex would be really neat.&lt;/P&gt;

&lt;P&gt;I solved my original problem with the following &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;set token="query"&amp;gt;(Description=$row.Description|s$ Vintage=$row.Vintage|s$)&amp;lt;/set&amp;gt;
 &amp;lt;set token="wines"&amp;gt;$wines$ OR $query$&amp;lt;/set&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and initially set wines to Description="XX", which saved having to use eval in the drilldown. Works nicely, other than I've not found a good way to "unclick" a particular wine/vintage to remove it from the currently selected wine set. Small problem though.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 10:12:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366536#M108130</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2017-05-08T10:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown  with $click$ values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366537#M108131</link>
      <description>&lt;P&gt;You should convert your comment to an answer and click &lt;CODE&gt;Accept&lt;/CODE&gt; to close the question.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 00:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366537#M108131</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-09T00:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown  with $click$ values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366538#M108132</link>
      <description>&lt;P&gt;I solved my original problem with the following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;set token="query"&amp;gt;(Description=$row.Description|s$ Vintage=$row.Vintage|s$)&amp;lt;/set&amp;gt;
&amp;lt;set token="wines"&amp;gt;$wines$ OR $query$&amp;lt;/set
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and in the dashboard  set wines to Description="XX", which saved having to use eval in the drilldown. Works nicely, other than I've not found a good way to "unclick" a particular wine/vintage to remove it from the currently selected wine set. Small problem though.&lt;/P&gt;

&lt;P&gt;Would still be nice to understand why I couldn't get it to work with to eval statement.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 01:24:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366538#M108132</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2017-05-09T01:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown  with $click$ values not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366539#M108133</link>
      <description>&lt;P&gt;Duh! I didn't see the wheel to convert to answer... but thanks anyway for your regex stuff. Handy!&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 01:26:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Drilldown-with-click-values-not-working/m-p/366539#M108133</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2017-05-09T01:26:39Z</dc:date>
    </item>
  </channel>
</rss>

