<?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: Increase count by 1 for every 10 Minutes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Increase-count-by-1-for-every-10-Minutes/m-p/333145#M99068</link>
    <description>&lt;P&gt;To increase count by 1 from its original value, use a counter with streamstats on a bucket of 10m:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bucket last_seen AS last_bucket span=10m | streamstats dc(last_bucket) AS counter | eval count=count+counter
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Jun 2018 14:24:44 GMT</pubDate>
    <dc:creator>alanden_splunk</dc:creator>
    <dc:date>2018-06-13T14:24:44Z</dc:date>
    <item>
      <title>Increase count by 1 for every 10 Minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Increase-count-by-1-for-every-10-Minutes/m-p/333143#M99066</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;index="XXX"  |stats latest(_time) as last_seen,values(ID) as ID, count by IP_Add  |  eval Filter=if(count%2==0,"Even","Odd") |  search Filter="Odd" |eval hours_since=(now()-last_seen) | convert timeformat="%d-%b-%y %H:%M" ctime(last_seen) | eval readable = tostring(hours_since, "duration")  | sort - last_seen | rename readable as "Running for: Days+:HH:MM:SS", last_seen as "Started",IP_Add as "IP" | table ID IP Started "Running for: Days+:HH:MM:SS" count |&lt;/P&gt;

&lt;P&gt;How do i increase count to +1 for every let's say 10 minutes that shows on duration until the stop event is received?&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:01:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Increase-count-by-1-for-every-10-Minutes/m-p/333143#M99066</guid>
      <dc:creator>denamza</dc:creator>
      <dc:date>2020-09-29T19:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Increase count by 1 for every 10 Minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Increase-count-by-1-for-every-10-Minutes/m-p/333144#M99067</link>
      <description>&lt;P&gt;You would need to explain more about your use case with sample data as to what start event and end event look like. Also can you not use end epoch time - start epoch time to get duration as seconds and then divide by 600 To convert it to 10 minutes? &lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 20:38:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Increase-count-by-1-for-every-10-Minutes/m-p/333144#M99067</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-12T20:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Increase count by 1 for every 10 Minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Increase-count-by-1-for-every-10-Minutes/m-p/333145#M99068</link>
      <description>&lt;P&gt;To increase count by 1 from its original value, use a counter with streamstats on a bucket of 10m:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bucket last_seen AS last_bucket span=10m | streamstats dc(last_bucket) AS counter | eval count=count+counter
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 14:24:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Increase-count-by-1-for-every-10-Minutes/m-p/333145#M99068</guid>
      <dc:creator>alanden_splunk</dc:creator>
      <dc:date>2018-06-13T14:24:44Z</dc:date>
    </item>
  </channel>
</rss>

