<?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: How do I search for irregularities in the sequence of events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-irregularities-in-the-sequence-of-events/m-p/269538#M81107</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| rex ":(?&amp;lt;irr&amp;gt;[A-Z]):$" | streamstats current=f window=1 first(irr) as pirr | table _raw irr pirr | where irr=pirr
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Dec 2015 21:07:58 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2015-12-10T21:07:58Z</dc:date>
    <item>
      <title>How do I search for irregularities in the sequence of events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-irregularities-in-the-sequence-of-events/m-p/269537#M81106</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have created a search to get the order of specified Events from hosts.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*SC "SPK CONLOC SERVER RECEIVED   R" | transaction host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;10.12.2015  12:02:29    SPK CONLOC SERVER RECEIVED  R B:B002: 16: 5:  5137:  2926:2:40:9:&lt;STRONG&gt;P&lt;/STRONG&gt;:&lt;BR /&gt;
10.12.2015  12:11:16    SPK CONLOC SERVER RECEIVED  R B:ROAD:  1: 1:  6618:   566:1:40:9:&lt;STRONG&gt;D&lt;/STRONG&gt;:&lt;BR /&gt;
10.12.2015  12:19:22    SPK CONLOC SERVER RECEIVED  R B:B002: 16: 3:  5137:  2799:2:40:9:&lt;STRONG&gt;P&lt;/STRONG&gt;:&lt;BR /&gt;
10.12.2015  12:25:13    SPK CONLOC SERVER RECEIVED  R B:  6587:   410:1:40:2:&lt;STRONG&gt;D&lt;/STRONG&gt;:&lt;BR /&gt;
10.12.2015  12:31:17    SPK CONLOC SERVER RECEIVED  R B:A002: 13:15:  5016:  1967:1:40:9:&lt;STRONG&gt;P&lt;/STRONG&gt;:&lt;BR /&gt;
10.12.2015  12:38:11    SPK CONLOC SERVER RECEIVED  R B:  6175:   166:1:40:9:&lt;STRONG&gt;D&lt;/STRONG&gt;:&lt;BR /&gt;
10.12.2015  12:43:59    SPK CONLOC SERVER RECEIVED  R B:B002: 20: 9:  5298:  3183:1:40:9:&lt;STRONG&gt;P&lt;/STRONG&gt;:&lt;BR /&gt;
10.12.2015  13:16:20    SPK CONLOC SERVER RECEIVED  R B:  6130:   445:1:40:9:&lt;STRONG&gt;D&lt;/STRONG&gt;:&lt;/P&gt;

&lt;P&gt;Normally, the order is the P D P D P D P D. When this happens, everything is ok. We are searching for the sequence when it looks like P P D P D P or P D D P D P .&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
Axel&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 14:41:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-irregularities-in-the-sequence-of-events/m-p/269537#M81106</guid>
      <dc:creator>zhonk</dc:creator>
      <dc:date>2015-12-10T14:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for irregularities in the sequence of events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-irregularities-in-the-sequence-of-events/m-p/269538#M81107</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| rex ":(?&amp;lt;irr&amp;gt;[A-Z]):$" | streamstats current=f window=1 first(irr) as pirr | table _raw irr pirr | where irr=pirr
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Dec 2015 21:07:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-irregularities-in-the-sequence-of-events/m-p/269538#M81107</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-12-10T21:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for irregularities in the sequence of events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-irregularities-in-the-sequence-of-events/m-p/269539#M81108</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
thanks about your answer, in combination with transaction the streamstats functions will not work. I add at the streamstats command &lt;STRONG&gt;by host&lt;/STRONG&gt;  and Splunk made a Filter on Host.I have retype the search and get all I need. &lt;/P&gt;

&lt;P&gt;index=*SC "SPK CONLOC SERVER RECEIVED   R" | sort host |  rex ":(?&lt;IRR&gt;[A-Z]):$"| streamstats current=f window=1 first(irr) as pirr by host | table _time,host, pirr, irr | where pirr=irr&lt;/IRR&gt;&lt;/P&gt;

&lt;P&gt;Best regards&lt;BR /&gt;
Axel&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 08:26:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-irregularities-in-the-sequence-of-events/m-p/269539#M81108</guid>
      <dc:creator>zhonk</dc:creator>
      <dc:date>2015-12-11T08:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for irregularities in the sequence of events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-irregularities-in-the-sequence-of-events/m-p/269540#M81109</link>
      <description>&lt;P&gt;If this answers your question, please mark it as answered so it can be closed. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 13:07:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-irregularities-in-the-sequence-of-events/m-p/269540#M81109</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-12-11T13:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for irregularities in the sequence of events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-irregularities-in-the-sequence-of-events/m-p/269541#M81110</link>
      <description>&lt;P&gt;Is it correct with Accepted Answer? It is my first question.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 13:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-irregularities-in-the-sequence-of-events/m-p/269541#M81110</guid>
      <dc:creator>zhonk</dc:creator>
      <dc:date>2015-12-11T13:13:36Z</dc:date>
    </item>
  </channel>
</rss>

