<?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: problem with 'condition match' in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545715#M154648</link>
    <description>&lt;P&gt;Just to clarify I don't even need/want the &amp;lt;single&amp;gt;. I just added it because otherwise I couldn't use the drilldown with the different conditions.&lt;BR /&gt;I want to conduct a search (automatically as soon as the dashboard is loaded), set a token with the search result as a value and then depending on that value I want to set a bunch of other tokens.&lt;/P&gt;</description>
    <pubDate>Sat, 27 Mar 2021 17:23:05 GMT</pubDate>
    <dc:creator>gerbert</dc:creator>
    <dc:date>2021-03-27T17:23:05Z</dc:date>
    <item>
      <title>problem with 'condition match'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545689#M154626</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to conduct a search, set a token according to the search result and then set another bunch of tokens depending on the search result token.&lt;BR /&gt;However my tokens ($test1$, $test2$ and $test3$) get never set. Any ideas what I'm doing wrong?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Titel&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$alwaysHideCSS$"&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
            index=someSearch| rename searchResult AS XX
          &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;set token="testtest"&amp;gt;$result.XX$&amp;lt;/set&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition match="5==5"&amp;gt;
            &amp;lt;set token="test1"&amp;gt;X5&amp;lt;/set&amp;gt;
            &amp;lt;set token="test2"&amp;gt;a&amp;lt;/set&amp;gt;
            &amp;lt;set token="test3"&amp;gt;b&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition match="1==9"&amp;gt;
            &amp;lt;set token="test1"&amp;gt;a&amp;lt;/set&amp;gt;
            &amp;lt;set token="test2"&amp;gt;X2&amp;lt;/set&amp;gt;
            &amp;lt;set token="test3"&amp;gt;b&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition match="2==3"&amp;gt;
            &amp;lt;set token="test1"&amp;gt;a&amp;lt;/set&amp;gt;
            &amp;lt;set token="test2"&amp;gt;b&amp;lt;/set&amp;gt;
            &amp;lt;set token="test3"&amp;gt;X3&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
[... ] &amp;lt;!-- here I want to use those test-tokens but they never get set --&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;The token "testtest" is working. Why do the tokens ($test1$, $test2$ and $test3$) not get set? The condition "5==5" cannot be false.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 12:36:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545689#M154626</guid>
      <dc:creator>gerbert</dc:creator>
      <dc:date>2021-03-27T12:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem with 'condition match'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545692#M154629</link>
      <description>&lt;P&gt;Perhaps a silly question, but you are clicking on the single, right?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 12:59:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545692#M154629</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-27T12:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem with 'condition match'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545714#M154647</link>
      <description>&lt;P&gt;Oh, no. I wasn't. Thanks! Now it set's the tokens correctly but is it possible to do this automatically without having to click anything. Like in an &amp;lt;init&amp;gt; &amp;lt;/init&amp;gt; environment. If so could you give me an example of how you would do it?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On a side note: is there a way to delete your own community posts? Earlier there was a problem with the splunk community servers I think, which lead to me posting five different threads with the same topic.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 17:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545714#M154647</guid>
      <dc:creator>gerbert</dc:creator>
      <dc:date>2021-03-27T17:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem with 'condition match'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545715#M154648</link>
      <description>&lt;P&gt;Just to clarify I don't even need/want the &amp;lt;single&amp;gt;. I just added it because otherwise I couldn't use the drilldown with the different conditions.&lt;BR /&gt;I want to conduct a search (automatically as soon as the dashboard is loaded), set a token with the search result as a value and then depending on that value I want to set a bunch of other tokens.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 17:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545715#M154648</guid>
      <dc:creator>gerbert</dc:creator>
      <dc:date>2021-03-27T17:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with 'condition match'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545717#M154649</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;form theme="light"&amp;gt;
  &amp;lt;label&amp;gt;...&amp;lt;/label&amp;gt;
  &amp;lt;search id="xyz"&amp;gt;
    &amp;lt;query&amp;gt;index=...&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;@h&amp;lt;/latest&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;condition&amp;gt;
        &amp;lt;set token="blah"&amp;gt;blah&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;init&amp;gt;
    &amp;lt;set token="abc"&amp;gt;true&amp;lt;/set&amp;gt;
  &amp;lt;/init&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;&amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 27 Mar 2021 18:00:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545717#M154649</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-27T18:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem with 'condition match'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545718#M154650</link>
      <description>&lt;P&gt;If you need to set tokens to different values depending on the results, you can use things like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;eval token="anothertoken"&amp;gt;if(a,b,c)&amp;lt;/eval&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 18:03:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545718#M154650</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-27T18:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem with 'condition match'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545720#M154651</link>
      <description>&lt;P&gt;Look for this dropdown menu at the top of your post&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITWhisperer_0-1616868311287.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13514iFDA56B254AB6B7F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITWhisperer_0-1616868311287.png" alt="ITWhisperer_0-1616868311287.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may be able to remove the post from there&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 18:05:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-with-condition-match/m-p/545720#M154651</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-27T18:05:42Z</dc:date>
    </item>
  </channel>
</rss>

