<?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: Searching a sequence of logs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Searching-a-sequence-of-logs/m-p/56951#M179899</link>
    <description>&lt;P&gt;Yes the transaction comman with bounderies would be a good start, but also use event tags. Tag both events with something meaningfull.&lt;/P&gt;

&lt;P&gt;Event A has tag=Error1&lt;/P&gt;

&lt;P&gt;Event_B has tag=Error2&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
index=someindex AND (tag=Error1 or tag=Error2) | Transaction host startswith="unable to" endswith="connection failed" maxspan=1m &lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Additional Reading:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://wiki.splunk.com/Deploy:UseSplunkForEventCorrelation"&gt;UseSplunkForEventCorrelation&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://blogs.splunk.com/2012/09/14/splunk-book-excerpt-grouping-events/"&gt;splunk-book-excerpt-grouping-events&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://blogs.splunk.com/2010/09/01/event-correlation/"&gt;event-correlation&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Tageventtypes"&gt;Tageventtypes&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Keep in mind that is only an example.&lt;/P&gt;

&lt;P&gt;Hope this helps or gets you started.  Dont forget to vote up and accept answers that help.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2013 17:44:48 GMT</pubDate>
    <dc:creator>bmacias84</dc:creator>
    <dc:date>2013-06-06T17:44:48Z</dc:date>
    <item>
      <title>Searching a sequence of logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-a-sequence-of-logs/m-p/56949#M179897</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I made a lot of research and tests but I can't figure how to...&lt;/P&gt;

&lt;P&gt;Is it possible to search a sequence of differents events in all the logs indexed in Splunk.&lt;/P&gt;

&lt;P&gt;I mean, if in the search window, I have something like this :&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;....&lt;/P&gt;

&lt;P&gt;event A&lt;/P&gt;

&lt;P&gt;....&lt;/P&gt;

&lt;P&gt;....&lt;/P&gt;

&lt;P&gt;event B&lt;/P&gt;

&lt;P&gt;....&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Is there a search command which permit to search the sequence "event A then event B". &lt;BR /&gt;
And after, use the result to create an alarm when I have this sequence of two events ?&lt;/P&gt;

&lt;P&gt;I'm not an english speakers, so please forgive my bad english.&lt;BR /&gt;
I hope my request is understandable anyway.&lt;/P&gt;

&lt;P&gt;Axel&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 14:28:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-a-sequence-of-logs/m-p/56949#M179897</guid>
      <dc:creator>jacquesaxel</dc:creator>
      <dc:date>2013-06-06T14:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Searching a sequence of logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-a-sequence-of-logs/m-p/56950#M179898</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;You can use the transaction command with the parameters startswith and endswith to define transaction boundaries&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 14:55:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-a-sequence-of-logs/m-p/56950#M179898</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2013-06-06T14:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Searching a sequence of logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-a-sequence-of-logs/m-p/56951#M179899</link>
      <description>&lt;P&gt;Yes the transaction comman with bounderies would be a good start, but also use event tags. Tag both events with something meaningfull.&lt;/P&gt;

&lt;P&gt;Event A has tag=Error1&lt;/P&gt;

&lt;P&gt;Event_B has tag=Error2&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
index=someindex AND (tag=Error1 or tag=Error2) | Transaction host startswith="unable to" endswith="connection failed" maxspan=1m &lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Additional Reading:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://wiki.splunk.com/Deploy:UseSplunkForEventCorrelation"&gt;UseSplunkForEventCorrelation&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://blogs.splunk.com/2012/09/14/splunk-book-excerpt-grouping-events/"&gt;splunk-book-excerpt-grouping-events&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://blogs.splunk.com/2010/09/01/event-correlation/"&gt;event-correlation&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Tageventtypes"&gt;Tageventtypes&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Keep in mind that is only an example.&lt;/P&gt;

&lt;P&gt;Hope this helps or gets you started.  Dont forget to vote up and accept answers that help.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 17:44:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-a-sequence-of-logs/m-p/56951#M179899</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-06-06T17:44:48Z</dc:date>
    </item>
  </channel>
</rss>

