<?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: SPL-Search based on  mutiple values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438400#M124783</link>
    <description>&lt;P&gt;That is because it is never &lt;CODE&gt;true&lt;/CODE&gt; (there are none to count)!&lt;/P&gt;</description>
    <pubDate>Sun, 14 Jul 2019 18:31:35 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-07-14T18:31:35Z</dc:date>
    <item>
      <title>SPL-Search based on  mutiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438393#M124776</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;i'm searching for a certain condition and wrote the  query below .It works but not quite what I'm looking for&lt;/P&gt;

&lt;P&gt;index="xyz" earliest=-18h (pidId=1 OR pidId=2 )  | stats count(eval(value&amp;gt;22)) AS count_status BY pidId | where count_status&amp;gt;=3&lt;/P&gt;

&lt;P&gt;What I'm looking for is &lt;BR /&gt;
pidId=1 and value &amp;gt;22 and occurs 3 or more times in 18 hours&lt;BR /&gt;
AND&lt;BR /&gt;
pidId=2 and value &amp;gt;37 and occurs 3 or more times in 18 hours&lt;/P&gt;

&lt;P&gt;How can I do this?&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438393#M124776</guid>
      <dc:creator>srs20</dc:creator>
      <dc:date>2020-09-30T01:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: SPL-Search based on  mutiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438394#M124777</link>
      <description>&lt;P&gt;If I understand what you're looking for, this may help.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="xyz" earliest=-18h (pidId=1 OR pidId=2 ) 
| stats count(eval(value&amp;gt;22)) AS count22, count(eval(value&amp;gt;37)) as count37 BY pidId
| where (pidId=1 AND count22&amp;gt;=3) OR (pidId=2 AND count37&amp;gt;=3)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Jun 2019 17:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438394#M124777</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-06-23T17:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: SPL-Search based on  mutiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438395#M124778</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="xyz" ((pidId=1 AND value &amp;gt;22) OR (pidId=2 AND value &amp;gt;37))
| stats dc(value) as dc_value by pidId
| where dc_value &amp;gt; 3
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Jun 2019 17:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438395#M124778</guid>
      <dc:creator>sumanssah</dc:creator>
      <dc:date>2019-06-23T17:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: SPL-Search based on  mutiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438396#M124779</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="xyz" earliest=-18h (pidId=1 OR pidId=2 )
| stats count(eval(value&amp;gt;22)) AS count22plus count(eval(value&amp;gt;33)) AS count33plus BY pidId
| where (pidId==1 AND count22plus&amp;gt;=3) OR (pidId==2 AND count33plus&amp;gt;=3)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Jun 2019 23:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438396#M124779</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-23T23:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: SPL-Search based on  mutiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438397#M124780</link>
      <description>&lt;P&gt;Thanks for the response.This returns null values  for the first eval command and correct values for the second stats eval ..so in this case  count22 is null and count37 is null. If I change the sequence i.e. &lt;/P&gt;

&lt;P&gt;| stats  count(eval(value&amp;gt;37)) as count37 count(eval(value&amp;gt;22)) AS count22 BY pidId&lt;/P&gt;

&lt;P&gt;The command above  gets the value of count22 but not count37. So,it always the second eval returnign results but never the first &lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 01:30:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438397#M124780</guid>
      <dc:creator>srs20</dc:creator>
      <dc:date>2019-06-24T01:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: SPL-Search based on  mutiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438398#M124781</link>
      <description>&lt;P&gt;Thanks for the response.This returns null values  for the first eval command and correct values for the second stats eval ..so in this case  count22plus is null and count37plus is null. If I change the sequence i.e. &lt;/P&gt;

&lt;P&gt;| stats  count(eval(value&amp;gt;37)) as count37plus count(eval(value&amp;gt;22)) AS count22plus BY pidId&lt;/P&gt;

&lt;P&gt;The command above  gets the value of count22 but not count37. So,it always the second eval returning results but never the first &lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 01:31:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438398#M124781</guid>
      <dc:creator>srs20</dc:creator>
      <dc:date>2019-06-24T01:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: SPL-Search based on  mutiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438399#M124782</link>
      <description>&lt;P&gt;Thanks,this returns results. Will need more time to validate.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 01:32:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438399#M124782</guid>
      <dc:creator>srs20</dc:creator>
      <dc:date>2019-06-24T01:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: SPL-Search based on  mutiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438400#M124783</link>
      <description>&lt;P&gt;That is because it is never &lt;CODE&gt;true&lt;/CODE&gt; (there are none to count)!&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 18:31:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Search-based-on-mutiple-values/m-p/438400#M124783</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-14T18:31:35Z</dc:date>
    </item>
  </channel>
</rss>

