<?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: In the following Splunk search, how can I only show those users that had a count &amp;gt; 1 in any given _time period? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392812#M166586</link>
    <description>&lt;P&gt;Updated the question to correct the sudo query.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Nov 2018 13:23:45 GMT</pubDate>
    <dc:creator>GadgetGeek</dc:creator>
    <dc:date>2018-11-14T13:23:45Z</dc:date>
    <item>
      <title>In the following Splunk search, how can I only show those users that had a count &gt; 1 in any given _time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392805#M166579</link>
      <description>&lt;P&gt;Given the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=myindex source=mysource MYSEARCHTERM | stats count by _time MyField
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which gives the results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                     Bob    Sally    Fred
2018-11-14 07:00:00.000    1       2       3
2018-11-14 08:00:00.000    0       1       2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I only show those users that had a count &amp;gt; 1 in any given _time period? So the result should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                      Sally    Fred
2018-11-14 07:00:00.000      2       3
2018-11-14 08:00:00.000      1       2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i.e. Sally is still shown as she had a count &amp;gt; 1 in a previous time period, but Bob is no longer shown as none of his entries are &amp;gt; 1&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 10:37:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392805#M166579</guid>
      <dc:creator>GadgetGeek</dc:creator>
      <dc:date>2018-11-14T10:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: In the following Splunk search, how can I only show those users that had a count &gt; 1 in any given _time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392806#M166580</link>
      <description>&lt;P&gt;I think you can use streamstats (delta) to solve this - (approx SPL)-  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex source=mysource MYSEARCHTERM | streamstats current=f last(MyField_for_BobSallyFred_time1) as Count_old last(MyField_for_BobSallyFred_time2 as Count_new | eval delta=Count_old - Count_new | where delta &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;from - &lt;A href="https://answers.splunk.com/answers/296041/how-do-i-find-the-delta-with-the-previous-count-va.html"&gt;https://answers.splunk.com/answers/296041/how-do-i-find-the-delta-with-the-previous-count-va.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 12:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392806#M166580</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-11-14T12:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: In the following Splunk search, how can I only show those users that had a count &gt; 1 in any given _time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392807#M166581</link>
      <description>&lt;P&gt;What is MyField_for_BobSallyFred_time1 and MyField_for_BobSallyFred_time2?&lt;/P&gt;

&lt;P&gt;Will this drop the column (MyField value) if the delta fails the condition?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392807#M166581</guid>
      <dc:creator>GadgetGeek</dc:creator>
      <dc:date>2020-09-29T22:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: In the following Splunk search, how can I only show those users that had a count &gt; 1 in any given _time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392808#M166582</link>
      <description>&lt;P&gt;Firstly &lt;CODE&gt;index=myindex source=mysource MYSEARCHTERM | stats count by _time MyField&lt;/CODE&gt; cannot result in the output you show. That search would result in 3 columns: _time, MyField and count. The output you are showing looks more like the output of &lt;CODE&gt;| chart count over _time by MyField&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;One way to get the results you are after:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex source=mysource MYSEARCHTERM
| stats count by _time MyField
| where count&amp;gt;1
| chart sum(count) over _time by MyField
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:13:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392808#M166582</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-14T13:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: In the following Splunk search, how can I only show those users that had a count &gt; 1 in any given _time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392809#M166583</link>
      <description>&lt;P&gt;What's the point in using streamstats to calculate a delta? He just wants to filter his results for count&amp;gt;1.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:15:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392809#M166583</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-14T13:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: In the following Splunk search, how can I only show those users that had a count &gt; 1 in any given _time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392810#M166584</link>
      <description>&lt;P&gt;The Sudo query should actually be more like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex source=mysource MYSEARCHTERM | bucket _time span=15m | chart count over _time by MyField limit=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...but it was the dropping of columns answer I am after...&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:15:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392810#M166584</guid>
      <dc:creator>GadgetGeek</dc:creator>
      <dc:date>2018-11-14T13:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: In the following Splunk search, how can I only show those users that had a count &gt; 1 in any given _time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392811#M166585</link>
      <description>&lt;P&gt;Yes, then my answer should work for you (just add that bucket part): &lt;A href="https://answers.splunk.com/answering/699948/view.html"&gt;https://answers.splunk.com/answering/699948/view.html&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:20:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392811#M166585</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-14T13:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: In the following Splunk search, how can I only show those users that had a count &gt; 1 in any given _time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392812#M166586</link>
      <description>&lt;P&gt;Updated the question to correct the sudo query.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392812#M166586</guid>
      <dc:creator>GadgetGeek</dc:creator>
      <dc:date>2018-11-14T13:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: In the following Splunk search, how can I only show those users that had a count &gt; 1 in any given _time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392813#M166587</link>
      <description>&lt;P&gt;Yes, so I guessed that correctly, have your tried my suggestion by doing stats first, then filter and then chart?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:26:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392813#M166587</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-14T13:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: In the following Splunk search, how can I only show those users that had a count &gt; 1 in any given _time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392814#M166588</link>
      <description>&lt;P&gt;I'd almost got it in one of my many attempts, but I missed the sum(count) at line 4!!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:26:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392814#M166588</guid>
      <dc:creator>GadgetGeek</dc:creator>
      <dc:date>2018-11-14T13:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: In the following Splunk search, how can I only show those users that had a count &gt; 1 in any given _time period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392815#M166589</link>
      <description>&lt;P&gt;It works... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-the-following-Splunk-search-how-can-I-only-show-those-users/m-p/392815#M166589</guid>
      <dc:creator>GadgetGeek</dc:creator>
      <dc:date>2018-11-14T13:47:21Z</dc:date>
    </item>
  </channel>
</rss>

