<?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: Alert if event B occurs without event A in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461084#M8184</link>
    <description>&lt;P&gt;If you are correct, then the event_count should be 2.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2020 11:11:13 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-06-03T11:11:13Z</dc:date>
    <item>
      <title>Suggestions to write an alert if event B occurs without event A?</title>
      <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461075#M8175</link>
      <description>&lt;P&gt;Hello Splunkers!&lt;/P&gt;
&lt;P&gt;I have an event A from source A and event B from source B.&lt;/P&gt;
&lt;P&gt;I need an alert when event B occurs without event A... Is this feasible? Could you please help me or post some suggestions?&lt;/P&gt;
&lt;P&gt;Thanks in Advance!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461075#M8175</guid>
      <dc:creator>sarahnazzar</dc:creator>
      <dc:date>2022-11-08T15:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if event B occurs without event A</title>
      <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461076#M8176</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;(index=A source=A event=A) OR (index=B source=B event=B)
| eval common=coalesce(eventA,eventB)
| stats count(eval(source="A")) as A count(eval(source="B")) as B by common
| where B &amp;gt; 0 AND A = 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 May 2020 09:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461076#M8176</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-21T09:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if event B occurs without event A</title>
      <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461077#M8177</link>
      <description>&lt;P&gt;Thanks for the response @to4kawa !&lt;/P&gt;

&lt;P&gt;In my case, event A and event B are the raw events, I don't have any fields extracted over there..&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 10:01:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461077#M8177</guid>
      <dc:creator>sarahnazzar</dc:creator>
      <dc:date>2020-05-21T10:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if event B occurs without event A</title>
      <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461078#M8178</link>
      <description>&lt;P&gt;well, why don't you provide sample logs?&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 10:17:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461078#M8178</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-21T10:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if event B occurs without event A</title>
      <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461079#M8179</link>
      <description>&lt;P&gt;PFB sample logs ,&lt;/P&gt;

&lt;P&gt;EventA : Thu May 13 2020 00:15:05 mailsv1 sshd[4351]: Failed password for invalid user guest from 86.212.199.60 port 3771 ssh2&lt;/P&gt;

&lt;P&gt;Event B : Thu May 13 2020 01:16:05 mailsv1 sshd[46748]: Received disconnect from 86.212.199.60: disconnected by user&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 11:53:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461079#M8179</guid>
      <dc:creator>sarahnazzar</dc:creator>
      <dc:date>2020-05-21T11:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if event B occurs without event A</title>
      <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461080#M8180</link>
      <description>&lt;P&gt;two events have same &lt;CODE&gt;ip address&lt;/CODE&gt;.&lt;BR /&gt;
Let's extract and collect them.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 21:00:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461080#M8180</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-21T21:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if event B occurs without event A</title>
      <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461081#M8181</link>
      <description>&lt;P&gt;Hi.. in some cases the IPs are not same..   we need to filter using the string "Failed password" and "Received disconnect" and frame the query..&lt;/P&gt;

&lt;P&gt;Thanks for your response @to4kawa!&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 08:30:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461081#M8181</guid>
      <dc:creator>sarahnazzar</dc:creator>
      <dc:date>2020-05-27T08:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if event B occurs without event A</title>
      <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461082#M8182</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;...
| rex "(?&amp;lt;status&amp;gt;Failed password|Received disconnect)"
| reverse
| streamstats dc(status) as status_count
| where status_count =1 AND status="Received disconnect"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;when event count &amp;gt; 0 , fire alert. &lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 08:59:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461082#M8182</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-27T08:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if event B occurs without event A</title>
      <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461083#M8183</link>
      <description>&lt;P&gt;Thanks for the response @to4kawa &lt;BR /&gt;
I tried the using the query but its fetching event 2 even if event 1 occurred.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 13:06:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461083#M8183</guid>
      <dc:creator>sarahnazzar</dc:creator>
      <dc:date>2020-06-02T13:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if event B occurs without event A</title>
      <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461084#M8184</link>
      <description>&lt;P&gt;If you are correct, then the event_count should be 2.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 11:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/461084#M8184</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-06-03T11:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if event B occurs without event A</title>
      <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/619733#M14486</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/35136"&gt;@sarahnazzar&lt;/a&gt;&amp;nbsp;, did you manage to get this working? Your comment implies that it does not work and I have not been able to adapt it to my, very similar, context&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 21:27:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/619733#M14486</guid>
      <dc:creator>Yulworm</dc:creator>
      <dc:date>2022-11-04T21:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if event B occurs without event A</title>
      <link>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/619744#M14487</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250974"&gt;@Yulworm&lt;/a&gt;&amp;nbsp;Please can you open a new providing more detail on your usecase?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 07:03:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Suggestions-to-write-an-alert-if-event-B-occurs-without-event-A/m-p/619744#M14487</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-05T07:03:16Z</dc:date>
    </item>
  </channel>
</rss>

