<?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 How to count until a specific number  and go to next value in field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499393#M194987</link>
    <description>&lt;P&gt;Here is my current query:&lt;/P&gt;

&lt;P&gt;index=abc* |stats count by user,date |eval highcount=(if count &amp;gt;=1000,1000,count) &lt;/P&gt;

&lt;P&gt;This gives me output like this:&lt;/P&gt;

&lt;P&gt;user1 200  200&lt;BR /&gt;
user2 34    34&lt;BR /&gt;
user3  1200  1000 --&amp;gt; I want to stop counting for this user once high count reaches 1000 and continue counting other users as it finds.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2019 17:36:06 GMT</pubDate>
    <dc:creator>rvalli</dc:creator>
    <dc:date>2019-11-29T17:36:06Z</dc:date>
    <item>
      <title>How to count until a specific number  and go to next value in field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499393#M194987</link>
      <description>&lt;P&gt;Here is my current query:&lt;/P&gt;

&lt;P&gt;index=abc* |stats count by user,date |eval highcount=(if count &amp;gt;=1000,1000,count) &lt;/P&gt;

&lt;P&gt;This gives me output like this:&lt;/P&gt;

&lt;P&gt;user1 200  200&lt;BR /&gt;
user2 34    34&lt;BR /&gt;
user3  1200  1000 --&amp;gt; I want to stop counting for this user once high count reaches 1000 and continue counting other users as it finds.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 17:36:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499393#M194987</guid>
      <dc:creator>rvalli</dc:creator>
      <dc:date>2019-11-29T17:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to count until a specific number  and go to next value in field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499394#M194988</link>
      <description>&lt;P&gt;I think I figured:&lt;BR /&gt;
index=abc* |stats count by user,date |eval count=(if count &amp;gt;=1000,1000,count) &lt;/P&gt;

&lt;P&gt;Is there a better way to do this?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 17:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499394#M194988</guid>
      <dc:creator>rvalli</dc:creator>
      <dc:date>2019-11-29T17:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to count until a specific number  and go to next value in field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499395#M194989</link>
      <description>&lt;P&gt;Do you want to reduce search time?&lt;/P&gt;

&lt;P&gt;Splunk basically searches for search criteria within the search period.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 04:41:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499395#M194989</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-30T04:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to count until a specific number  and go to next value in field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499396#M194990</link>
      <description>&lt;P&gt;Yes please ,Yes please.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 11:44:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499396#M194990</guid>
      <dc:creator>rvalli</dc:creator>
      <dc:date>2019-11-30T11:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to count until a specific number  and go to next value in field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499397#M194991</link>
      <description>&lt;P&gt;First of all, what is the purpose and duration of the search?(Do you want to count the number of users?)&lt;/P&gt;

&lt;P&gt;Please provide a sample log.&lt;/P&gt;

&lt;P&gt;How many items are you searching for?&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 23:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499397#M194991</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-30T23:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to count until a specific number  and go to next value in field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499398#M194992</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc* 
| stats count BY user date 
| eval count = min(1000, count)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Dec 2019 22:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-until-a-specific-number-and-go-to-next-value-in/m-p/499398#M194992</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-01T22:36:56Z</dc:date>
    </item>
  </channel>
</rss>

