<?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: Sequential event mining in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46143#M11026</link>
    <description>&lt;P&gt;@Martin_mueller, thanks. Streamstats is cool. I don't know this command before but I  managed to generate unique event using DEDUP. My actual question is actually what command should I use after having unique event:&lt;/P&gt;

&lt;P&gt;How to list those where the first is a failure and the second is a success&lt;BR /&gt;
and the number of unique users having this sequence?&lt;/P&gt;</description>
    <pubDate>Sat, 25 May 2013 19:16:18 GMT</pubDate>
    <dc:creator>fayedong</dc:creator>
    <dc:date>2013-05-25T19:16:18Z</dc:date>
    <item>
      <title>Sequential event mining</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46141#M11024</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;

&lt;P&gt;I am new to Splunk. I have a question about Splunk query.&lt;/P&gt;

&lt;P&gt;Here are some sample  logs (timestamp ordered) which record users' success attempts and failure attempts:&lt;/P&gt;

&lt;P&gt;TimeStamp    UserName   Status&lt;BR /&gt;
t7               UserA  success&lt;BR /&gt;
t6               UserA  failure&lt;BR /&gt;
t5               UserB  success&lt;BR /&gt;
t4               UserC   failure&lt;BR /&gt;
t3               UserC  success&lt;BR /&gt;
t2               UserD  failure&lt;BR /&gt;
t1               UserE   success&lt;/P&gt;

&lt;P&gt;My question is what should the query like if I want to find out users whose first attempt failed and then second attempt succeeded? .&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2013 04:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46141#M11024</guid>
      <dc:creator>fayedong</dc:creator>
      <dc:date>2013-05-25T04:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential event mining</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46142#M11025</link>
      <description>&lt;P&gt;For analysing relationships between events you often need streamstats. For example, appending this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;streamstats count by UserName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;will give you a unique numbering of events per user. After that you could filter for those where the first is a failure and the second is a success.&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2013 18:27:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46142#M11025</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-05-25T18:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential event mining</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46143#M11026</link>
      <description>&lt;P&gt;@Martin_mueller, thanks. Streamstats is cool. I don't know this command before but I  managed to generate unique event using DEDUP. My actual question is actually what command should I use after having unique event:&lt;/P&gt;

&lt;P&gt;How to list those where the first is a failure and the second is a success&lt;BR /&gt;
and the number of unique users having this sequence?&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2013 19:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46143#M11026</guid>
      <dc:creator>fayedong</dc:creator>
      <dc:date>2013-05-25T19:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential event mining</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46144#M11027</link>
      <description>&lt;P&gt;Thanks, martin_mueller. My question actually is : how to filter for those where the first is a failure and the second is a success?  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2013 19:17:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46144#M11027</guid>
      <dc:creator>fayedong</dc:creator>
      <dc:date>2013-05-25T19:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential event mining</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46145#M11028</link>
      <description>&lt;P&gt;After counting them, you could filter like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;where (Status="failure" AND count=1) OR (Status="success" AND count=2) | eventstats count by UserName | where count=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That'll first filter for only those events where the first attempt is a failure and the second attempt is a success, then counts by username and only keeps those that have both attempts - ie filters out two failures or two successes.&lt;/P&gt;

&lt;P&gt;I'm not sure whether that's what you need though - what goal are you trying to achieve?&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2013 19:38:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46145#M11028</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-05-25T19:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential event mining</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46146#M11029</link>
      <description>&lt;P&gt;stats first(Status) as Status1 last(Status) as Status2 by UserName | search Status1="Success" AND Status2="Failure"  &lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2013 20:41:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sequential-event-mining/m-p/46146#M11029</guid>
      <dc:creator>fayedong</dc:creator>
      <dc:date>2013-05-25T20:41:01Z</dc:date>
    </item>
  </channel>
</rss>

