<?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 Group events that occur continuously and contain a common name in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Group-events-that-occur-continuously-and-contain-a-common-name/m-p/265565#M79806</link>
    <description>&lt;P&gt;I would like to group continuous events that occur in order over time, and have a common name. &lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;P&gt;_time name&lt;BR /&gt;
2016-09-05 10:15:36.691    A&lt;BR /&gt;
2016-09-05 10:15:32.519 B&lt;BR /&gt;
2016-09-05 10:15:22.708 C&lt;BR /&gt;
2016-09-05 10:10:37.374 C&lt;BR /&gt;
2016-09-05 10:10:25.848 B&lt;BR /&gt;
2016-09-05 10:10:08.099 B&lt;BR /&gt;
2016-09-05 10:10:03.349 B&lt;BR /&gt;
2016-09-05 10:09:31.304 A&lt;BR /&gt;
2016-09-05 10:09:16.339 A&lt;BR /&gt;
2016-09-05 10:09:07.415 A&lt;/P&gt;

&lt;P&gt;Would yield:&lt;BR /&gt;
_time name count&lt;BR /&gt;
2016-09-05 10:15:36.691    A 1&lt;BR /&gt;
2016-09-05 10:15:32.519 B 1&lt;BR /&gt;
2016-09-05 10:15:22.708 C 2&lt;BR /&gt;
2016-09-05 10:10:25.848 B 3&lt;BR /&gt;
2016-09-05 10:09:31.304 A 3&lt;/P&gt;

&lt;P&gt;Stats and transaction seem to work over all events in a stream, and I haven't found an obvious was to cluster based on the continuous nature of the data.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Mon, 05 Sep 2016 09:38:43 GMT</pubDate>
    <dc:creator>ollie920049</dc:creator>
    <dc:date>2016-09-05T09:38:43Z</dc:date>
    <item>
      <title>Group events that occur continuously and contain a common name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-events-that-occur-continuously-and-contain-a-common-name/m-p/265565#M79806</link>
      <description>&lt;P&gt;I would like to group continuous events that occur in order over time, and have a common name. &lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;P&gt;_time name&lt;BR /&gt;
2016-09-05 10:15:36.691    A&lt;BR /&gt;
2016-09-05 10:15:32.519 B&lt;BR /&gt;
2016-09-05 10:15:22.708 C&lt;BR /&gt;
2016-09-05 10:10:37.374 C&lt;BR /&gt;
2016-09-05 10:10:25.848 B&lt;BR /&gt;
2016-09-05 10:10:08.099 B&lt;BR /&gt;
2016-09-05 10:10:03.349 B&lt;BR /&gt;
2016-09-05 10:09:31.304 A&lt;BR /&gt;
2016-09-05 10:09:16.339 A&lt;BR /&gt;
2016-09-05 10:09:07.415 A&lt;/P&gt;

&lt;P&gt;Would yield:&lt;BR /&gt;
_time name count&lt;BR /&gt;
2016-09-05 10:15:36.691    A 1&lt;BR /&gt;
2016-09-05 10:15:32.519 B 1&lt;BR /&gt;
2016-09-05 10:15:22.708 C 2&lt;BR /&gt;
2016-09-05 10:10:25.848 B 3&lt;BR /&gt;
2016-09-05 10:09:31.304 A 3&lt;/P&gt;

&lt;P&gt;Stats and transaction seem to work over all events in a stream, and I haven't found an obvious was to cluster based on the continuous nature of the data.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 09:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-events-that-occur-continuously-and-contain-a-common-name/m-p/265565#M79806</guid>
      <dc:creator>ollie920049</dc:creator>
      <dc:date>2016-09-05T09:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Group events that occur continuously and contain a common name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-events-that-occur-continuously-and-contain-a-common-name/m-p/265566#M79807</link>
      <description>&lt;P&gt;If the splunk version is 6.4 or above , try this&lt;/P&gt;

&lt;P&gt;|streamstats count as s_c by name reset_on_change=true current=t&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-events-that-occur-continuously-and-contain-a-common-name/m-p/265566#M79807</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-29T10:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Group events that occur continuously and contain a common name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-events-that-occur-continuously-and-contain-a-common-name/m-p/265567#M79808</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | streamstats current=f window=1 values(name) prev | eval temp=case(isnull(prev),1,prev!=name,1,true(),0) | accum temp| eventstats count by temp | fields - temp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Sep 2016 17:23:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-events-that-occur-continuously-and-contain-a-common-name/m-p/265567#M79808</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-05T17:23:04Z</dc:date>
    </item>
  </channel>
</rss>

