<?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: Event following another event to find if login is successful in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749080#M242089</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262846"&gt;@PiotrAp&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;In the query you can see the "SUCCESS" status on the second step of the authentication, so on the event 1001. The status of the event 1000 corresponding to this auth is still FAILURE because the second step didn't already happen.&lt;BR /&gt;If you add a "| search event_id=1001" at the end of the search, does that solve your problem? You will have only the success event for user "test", but you will not have all the 1000 events that don't have a 1001 after.&lt;BR /&gt;What do you want to keep exactly ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2025 08:32:20 GMT</pubDate>
    <dc:creator>malix_la_harpe</dc:creator>
    <dc:date>2025-07-02T08:32:20Z</dc:date>
    <item>
      <title>Event following another event to find if login is successful</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/748956#M242068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m looking for query which helps me to find if login is successful or not. Unfortunately, there is no direct log which would show this, so I need to use following logic:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If there is EventID 1000, check if there is following EventID 1001 with the same filed called Username in time range of 1s&lt;/LI&gt;&lt;LI&gt;If EventID with above conditions exist – Status=SUCCESSS&lt;/LI&gt;&lt;LI&gt;If EventID with above conditions doesn’t exist – Status=FAILURE&lt;/LI&gt;&lt;LI&gt;Disaply table with following fields with match both events:&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;_Time of event 1000&lt;/LI&gt;&lt;LI&gt;Computer from event 1000&lt;/LI&gt;&lt;LI&gt;Status&lt;/LI&gt;&lt;LI&gt;Resource from event 1001&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is it possible to get this in Splunk?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 14:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/748956#M242068</guid>
      <dc:creator>PiotrAp</dc:creator>
      <dc:date>2025-06-30T14:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Event following another event to find if login is successful</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/748961#M242069</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262846"&gt;@PiotrAp&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;You can try something like that :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval event_id=1000, username="test", Computer="xx1", _time=strptime("2025-06-30 16:26:27.01", "%Y-%m-%d %H:%M:%S.%N"), resource="example1"
| append 
    [| makeresults
| eval event_id=1000, username="test", Computer="xx2", _time=strptime("2025-06-30 16:26:27.02", "%Y-%m-%d %H:%M:%S.%N"), resource="example2"]
| append 
    [| makeresults
| eval event_id=1001, username="test", _time=strptime("2025-06-30 16:26:27.03", "%Y-%m-%d %H:%M:%S.%N"), resource="example3"]
| append 
    [| makeresults
| eval event_id=1000, username="truc", Computer="yyy", _time=strptime("2025-06-30 16:26:29", "%Y-%m-%d %H:%M:%S"), resource="example2"]
| append 
    [| makeresults
| eval event_id=1001, username="truc", Computer="yyy", _time=strptime("2025-06-30 16:26:32", "%Y-%m-%d %H:%M:%S"), resource="example3"]
| sort _time
| streamstats time_window=1s last(event_id) AS current_event_id, last(eval(if(event_id=1000,event_id,null()))) AS previous_event_id, last(eval(if(event_id=1000,_time,null()))) AS previous_time, last(eval(if(event_id=1000,Computer,null()))) as previous_computer, last(resource) AS current_resource by username
| eval status = if(current_event_id=1001 and previous_event_id=1000,"SUCCESS","FAILURE")&lt;/LI-CODE&gt;&lt;P&gt;(The makeresults lines are here to generate some data to test the query)&lt;BR /&gt;&lt;BR /&gt;In the results, you can see that the "success" status has the time &amp;amp; the computer of the previous event 1000 in the "previous_time" and "previous_computer" fields, and the resource of the event 1001 in the current_resource field.&amp;nbsp; (I handled the case you have multiple 1000 event before the 1001, we want to keep only the fields of the last 1000 event)&lt;BR /&gt;&lt;BR /&gt;The user "truc" doesn't have a success event because the 2 events aren't in a 1s time window.&lt;BR /&gt;&lt;BR /&gt;If you run this query you will see the results like :&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="40px"&gt;Computer&lt;/TD&gt;&lt;TD width="106.6px"&gt;_time&lt;/TD&gt;&lt;TD width="49.3px"&gt;current_event_id&lt;/TD&gt;&lt;TD width="81.5667px"&gt;current_resource&lt;/TD&gt;&lt;TD width="49.3px"&gt;event_id&lt;/TD&gt;&lt;TD width="40px"&gt;previous_computer&lt;/TD&gt;&lt;TD width="49.3px"&gt;previous_event_id&lt;/TD&gt;&lt;TD width="167.6px"&gt;previous_time&lt;/TD&gt;&lt;TD width="81.5667px"&gt;resource&lt;/TD&gt;&lt;TD width="82.3667px"&gt;status&lt;/TD&gt;&lt;TD width="40.5167px"&gt;username&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="106.6px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="49.3px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="81.5667px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="49.3px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="49.3px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="167.6px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="81.5667px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="82.3667px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="40.5167px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;xx1&lt;/TD&gt;&lt;TD width="106.6px"&gt;2025-06-30 16:26:27.010&lt;/TD&gt;&lt;TD width="49.3px"&gt;1000&lt;/TD&gt;&lt;TD width="81.5667px"&gt;example1&lt;/TD&gt;&lt;TD width="49.3px"&gt;1000&lt;/TD&gt;&lt;TD width="40px"&gt;xx1&lt;/TD&gt;&lt;TD width="49.3px"&gt;1000&lt;/TD&gt;&lt;TD width="167.6px"&gt;1751293587.010000&lt;/TD&gt;&lt;TD width="81.5667px"&gt;example1&lt;/TD&gt;&lt;TD width="82.3667px"&gt;FAILURE&lt;/TD&gt;&lt;TD width="40.5167px"&gt;test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;xx2&lt;/TD&gt;&lt;TD width="106.6px"&gt;2025-06-30 16:26:27.020&lt;/TD&gt;&lt;TD width="49.3px"&gt;1000&lt;/TD&gt;&lt;TD width="81.5667px"&gt;example2&lt;/TD&gt;&lt;TD width="49.3px"&gt;1000&lt;/TD&gt;&lt;TD width="40px"&gt;xx2&lt;/TD&gt;&lt;TD width="49.3px"&gt;1000&lt;/TD&gt;&lt;TD width="167.6px"&gt;1751293587.020000&lt;/TD&gt;&lt;TD width="81.5667px"&gt;example2&lt;/TD&gt;&lt;TD width="82.3667px"&gt;FAILURE&lt;/TD&gt;&lt;TD width="40.5167px"&gt;test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="106.6px"&gt;2025-06-30 16:26:27.030&lt;/TD&gt;&lt;TD width="49.3px"&gt;1001&lt;/TD&gt;&lt;TD width="81.5667px"&gt;example3&lt;/TD&gt;&lt;TD width="49.3px"&gt;1001&lt;/TD&gt;&lt;TD width="40px"&gt;xx2&lt;/TD&gt;&lt;TD width="49.3px"&gt;1000&lt;/TD&gt;&lt;TD width="167.6px"&gt;1751293587.020000&lt;/TD&gt;&lt;TD width="81.5667px"&gt;example3&lt;/TD&gt;&lt;TD width="82.3667px"&gt;SUCCESS&lt;/TD&gt;&lt;TD width="40.5167px"&gt;test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;yyy&lt;/TD&gt;&lt;TD width="106.6px"&gt;2025-06-30 16:26:29.000&lt;/TD&gt;&lt;TD width="49.3px"&gt;1000&lt;/TD&gt;&lt;TD width="81.5667px"&gt;example2&lt;/TD&gt;&lt;TD width="49.3px"&gt;1000&lt;/TD&gt;&lt;TD width="40px"&gt;yyy&lt;/TD&gt;&lt;TD width="49.3px"&gt;1000&lt;/TD&gt;&lt;TD width="167.6px"&gt;1751293589.000000&lt;/TD&gt;&lt;TD width="81.5667px"&gt;example2&lt;/TD&gt;&lt;TD width="82.3667px"&gt;FAILURE&lt;/TD&gt;&lt;TD width="40.5167px"&gt;truc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;yyy&lt;/TD&gt;&lt;TD width="106.6px"&gt;2025-06-30 16:26:32.000&lt;/TD&gt;&lt;TD width="49.3px"&gt;1001&lt;/TD&gt;&lt;TD width="81.5667px"&gt;example3&lt;/TD&gt;&lt;TD width="49.3px"&gt;1001&lt;/TD&gt;&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="49.3px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="167.6px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="81.5667px"&gt;example3&lt;/TD&gt;&lt;TD width="82.3667px"&gt;FAILURE&lt;/TD&gt;&lt;TD width="40.5167px"&gt;truc&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Does that answer your question? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 15:03:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/748961#M242069</guid>
      <dc:creator>malix_la_harpe</dc:creator>
      <dc:date>2025-06-30T15:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Event following another event to find if login is successful</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749036#M242074</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/311221"&gt;@malix_la_harpe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for this comprehensive answer.&lt;/P&gt;&lt;P&gt;I've been testing the query and it gives promising results, however I have one issue and I hope you will be able to help me.&lt;/P&gt;&lt;P&gt;In the results table there shouldn't be example2 row with FAILURE result as this is a begin of login process successfully completed in example3 row. In other words, the row example2 should be removed from the table. I've tried to adjust the query but unfortunately wasn't able and I hope you will be able to help me. I hope I explained the problem clearly - if not, please let me know.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PiotrAp_1-1751375831875.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39539i091775B07ACA8C85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PiotrAp_1-1751375831875.png" alt="PiotrAp_1-1751375831875.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 13:18:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749036#M242074</guid>
      <dc:creator>PiotrAp</dc:creator>
      <dc:date>2025-07-01T13:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Event following another event to find if login is successful</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749080#M242089</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262846"&gt;@PiotrAp&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;In the query you can see the "SUCCESS" status on the second step of the authentication, so on the event 1001. The status of the event 1000 corresponding to this auth is still FAILURE because the second step didn't already happen.&lt;BR /&gt;If you add a "| search event_id=1001" at the end of the search, does that solve your problem? You will have only the success event for user "test", but you will not have all the 1000 events that don't have a 1001 after.&lt;BR /&gt;What do you want to keep exactly ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 08:32:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749080#M242089</guid>
      <dc:creator>malix_la_harpe</dc:creator>
      <dc:date>2025-07-02T08:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Event following another event to find if login is successful</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749081#M242090</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/311221"&gt;@malix_la_harpe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, many thanks for your help.&lt;/P&gt;&lt;P&gt;Unfortunately adding &lt;SPAN&gt;&amp;nbsp;a "| search event_id=1001"&amp;nbsp;&lt;/SPAN&gt;won't resolve the issue as it will show only successful logins. I'm looking for query which will show also failure logins which are determined as follow:&lt;/P&gt;&lt;P&gt;1. If there is evenr_id 1000 and there is no following event_id 1001 in 1s for the same username - the login is FAILURE&lt;/P&gt;&lt;P&gt;2. If there is evenr_id 1000 and there is following event_id 1001 in 1s for the same username - the login is SUCESS&lt;/P&gt;&lt;P&gt;And the query doesn't take into account condition in second point as&amp;nbsp; it displays FAILURE even there is following event_if 1001 in 1s for the same user name. In other words the FAILURE part doesn't work.&lt;/P&gt;&lt;P&gt;I hope I've explained this clearly.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 08:52:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749081#M242090</guid>
      <dc:creator>PiotrAp</dc:creator>
      <dc:date>2025-07-02T08:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Event following another event to find if login is successful</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749187#M242105</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262846"&gt;@PiotrAp&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Maybe you can do something like that?&lt;BR /&gt;I added a second streamstats to keep only the results who don't have an associated event (No 1000 event for a 1001, and no 1001 for a 1000), and also remove the closest 1000 event to a successful 1001 :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval event_id=1000, username="test", Computer="xx1", _time=strptime("2025-06-30 16:26:27.01", "%Y-%m-%d %H:%M:%S.%N"), resource="example1"
| append 
    [| makeresults
| eval event_id=1000, username="test", Computer="xx2", _time=strptime("2025-06-30 16:26:27.02", "%Y-%m-%d %H:%M:%S.%N"), resource="example2"]
| append 
    [| makeresults
| eval event_id=1001, username="test", _time=strptime("2025-06-30 16:26:27.03", "%Y-%m-%d %H:%M:%S.%N"), resource="example3"]
| append 
    [| makeresults
| eval event_id=1000, username="truc", Computer="yyy", _time=strptime("2025-06-30 16:26:29", "%Y-%m-%d %H:%M:%S"), resource="example2"]
| append 
    [| makeresults
| eval event_id=1001, username="truc", Computer="yyy", _time=strptime("2025-06-30 16:26:32", "%Y-%m-%d %H:%M:%S"), resource="example3"]
| sort _time
| streamstats time_window=1s count as nb last(event_id) AS current_event_id, last(eval(if(event_id=1000,event_id,null()))) AS previous_event_id, last(eval(if(event_id=1000,_time,null()))) AS previous_time, last(eval(if(event_id=1000,Computer,null()))) as previous_computer, last(resource) AS current_resource by username
| eval status = if(current_event_id=1001 and previous_event_id=1000,"SUCCESS","FAILURE")
| reverse
| streamstats time_window=1s max(eval(if(event_id=1000,nb,null()))) as max_nb values(status) as statuses by username
| where mvcount(statuses)=1 or nb!=max_nb
| fields - statuses current_event_id current_resource max_nb nb previous_event_id&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The query is not very elegant, but works if I understood well what you want.&lt;BR /&gt;Maybe someone will have a prettier solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Don't hesitate to tell me if it suits your need&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 13:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749187#M242105</guid>
      <dc:creator>malix_la_harpe</dc:creator>
      <dc:date>2025-07-03T13:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Event following another event to find if login is successful</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749248#M242111</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/311221"&gt;@malix_la_harpe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for all advises. I've modified the query and added dedup - solution and seems to be working well. However what you proposed does the job as well. I really appreciate time which you spend helping me!&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;| makeresults&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| eval event_id=1000, username="test", Computer="xx1", _time=strptime("2025-06-30 16:26:27.01", "%Y-%m-%d %H:%M:%S.%N"), resource="example1"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| append &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[| makeresults&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| eval event_id=1000, username="test", Computer="xx2", _time=strptime("2025-06-30 16:26:27.02", "%Y-%m-%d %H:%M:%S.%N"), resource="example2"]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| append &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[| makeresults&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| eval event_id=1001, username="test", _time=strptime("2025-06-30 16:26:27.03", "%Y-%m-%d %H:%M:%S.%N"), resource="example3"]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| append &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[| makeresults&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| eval event_id=1000, username="truc", Computer="yyy", _time=strptime("2025-06-30 16:26:29", "%Y-%m-%d %H:%M:%S"), resource="example2"]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| append &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[| makeresults&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| eval event_id=1001, username="truc", Computer="yyy", _time=strptime("2025-06-30 16:26:32", "%Y-%m-%d %H:%M:%S"), resource="example3"]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| sort _time&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| streamstats time_window=1s values(_time) as Time values(Computer) as Computer_name values(event_id) AS EventID, last(eval(if(event_id=1000,event_id,null()))) AS previous_event_id, count(eval(event_id)) as EventCount, last(eval(if(event_id=1000,_time,null()))) AS previous_time by username&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| dedup previous_time username sortby EventCount desc&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| eval status = if(EventCount&amp;gt;1,"SUCCESS","FAILURE")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| table Time Computer_name EventID username resource status&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| sort Time&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 08:54:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749248#M242111</guid>
      <dc:creator>PiotrAp</dc:creator>
      <dc:date>2025-07-04T08:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Event following another event to find if login is successful</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749250#M242112</link>
      <description>&lt;P&gt;You're right, with the dedup it's better&lt;BR /&gt;I'm glad we came to a solution together&lt;BR /&gt;Happy splunking! &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 09:19:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-following-another-event-to-find-if-login-is-successful/m-p/749250#M242112</guid>
      <dc:creator>malix_la_harpe</dc:creator>
      <dc:date>2025-07-04T09:19:07Z</dc:date>
    </item>
  </channel>
</rss>

