<?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: Correct syntax for condition in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290808#M87880</link>
    <description>&lt;P&gt;okay. &lt;BR /&gt;
I think I missed nested condition tag. Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;condition match=" $value$=&amp;amp;quot;volume&amp;amp;quot; AND  $token$ != 1"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 19 Feb 2018 17:59:13 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2018-02-19T17:59:13Z</dc:date>
    <item>
      <title>Correct syntax for condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290803#M87875</link>
      <description>&lt;P&gt;Im trying to perform a condition based on 2 varibles, but I can't seem to get right the expression. I've been trying to chain the conditions, but it doesnt work. What's the equivalent of this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;change&amp;gt;

            &amp;lt;condition value="volume"&amp;gt; 
                 &amp;lt;condition match=" $token$ != 1"&amp;gt;
                    &amp;lt;set token="volume-details1"&amp;gt;true&amp;lt;/set&amp;gt;
                    &amp;lt;unset token="resptime-details1"&amp;gt;&amp;lt;/unset&amp;gt;
                    &amp;lt;unset token="error-details1"&amp;gt;&amp;lt;/unset&amp;gt;
                    &amp;lt;unset token="gctime-details1"&amp;gt;&amp;lt;/unset&amp;gt;
                    &amp;lt;unset token="thread-details1"&amp;gt;&amp;lt;/unset&amp;gt;
                    &amp;lt;unset token="connpool-details1"&amp;gt;&amp;lt;/unset&amp;gt;
                    &amp;lt;unset token="cpu-details1"&amp;gt;&amp;lt;/unset&amp;gt;
                    &amp;lt;unset token="memory-details1"&amp;gt;&amp;lt;/unset&amp;gt;
                    &amp;lt;unset token="disk-details1"&amp;gt;&amp;lt;/unset&amp;gt;
              &amp;lt;/condition&amp;gt;
           &amp;lt;/condition&amp;gt;

&amp;lt;/change&amp;gt;

 &amp;lt;init&amp;gt;
    &amp;lt;set token="token"&amp;gt;0&amp;lt;/set&amp;gt;
&amp;lt;/init&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Feb 2018 16:44:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290803#M87875</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2018-02-19T16:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290804#M87876</link>
      <description>&lt;P&gt;Hi @greggz,&lt;/P&gt;

&lt;P&gt;As your condition is nested can you please try below conditions in your condition code?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;condition match=" $value$=&amp;amp;quot;volume&amp;amp;quot; AND  $token$ != 1"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 17:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290804#M87876</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-02-19T17:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290805#M87877</link>
      <description>&lt;P&gt;&lt;CODE&gt;&amp;lt;condition match=" $token$ != 1"&amp;gt;&lt;/CODE&gt; .. This line works fine if it's not inside the Outer condition. So, it's not from that Im sure&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 17:27:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290805#M87877</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2018-02-19T17:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290806#M87878</link>
      <description>&lt;P&gt;oooh..&lt;/P&gt;

&lt;P&gt;$token$ is not a input token.?... Can you please share your sample xml ?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 17:29:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290806#M87878</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-02-19T17:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290807#M87879</link>
      <description>&lt;P&gt;No. Token is a "global" token. &lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 17:37:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290807#M87879</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2018-02-19T17:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290808#M87880</link>
      <description>&lt;P&gt;okay. &lt;BR /&gt;
I think I missed nested condition tag. Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;condition match=" $value$=&amp;amp;quot;volume&amp;amp;quot; AND  $token$ != 1"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Feb 2018 17:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290808#M87880</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-02-19T17:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290809#M87881</link>
      <description>&lt;P&gt;Marvelous. It works! Thanks. Update answer for me to mark it as correct. thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 18:14:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290809#M87881</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2018-02-19T18:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290810#M87882</link>
      <description>&lt;P&gt;Answer updated&lt;BR /&gt;
Please accept and upvote any comment which helped you.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 18:17:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correct-syntax-for-condition/m-p/290810#M87882</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-02-19T18:17:57Z</dc:date>
    </item>
  </channel>
</rss>

