<?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 to create Alert when event is ended in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-create-Alert-when-event-is-ended/m-p/624885#M11217</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/239571"&gt;@OnderSentira&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Is there a possibility that you have following scenario: -&lt;/P&gt;&lt;P&gt;A1 shipment started&lt;BR /&gt;A2 shipment started&lt;BR /&gt;A1 shipment ended&lt;BR /&gt;A2 shipment ended&lt;/P&gt;&lt;P&gt;Or its always in a sequential format: -&lt;/P&gt;&lt;P&gt;A1 shipment started&lt;BR /&gt;A1 shipment ended&lt;BR /&gt;A2 shipment started&lt;BR /&gt;A2 shipment ended&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 18:35:33 GMT</pubDate>
    <dc:creator>Taruchit</dc:creator>
    <dc:date>2022-12-20T18:35:33Z</dc:date>
    <item>
      <title>How to create Alert when event is ended</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-create-Alert-when-event-is-ended/m-p/624878#M11216</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As soon as an event ends I want to create an alert and want to sent email with Shipment ID which is ended.&lt;/P&gt;&lt;P&gt;Example log:&lt;/P&gt;&lt;P&gt;EVENT GROUP A = Started en ended.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2022-12-20 10:43:04.468 +01:00 [ShipmentTransferWorker] **** Execution of Shipment Transfer Worker started. ****
2022-12-20 10:43:04.471 +01:00 [ShipmentTransferWorker] **** [Shipment Number: 000061015] ****
2022-12-20 11:06:19.097 +01:00 [ShipmentTransferWorker] **** Execution of Shipment Transfer Worker ended ****&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;EVENT GROUP B = Started end not ended yet.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2022-12-20 13:43:04.468 +01:00 [ShipmentTransferWorker] **** Execution of Shipment Transfer Worker started. ****
2022-12-20 13:43:04.471 +01:00 [ShipmentTransferWorker] **** [Shipment Number: 000061016] ****&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;My SPL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=app sourcetype=MySource host=MyHost "ShipmentTransferWorker"
| eval Shipment_Status =if(like(_raw, "%Execution of Shipment Transfer Worker started%"),"Started", if(like(_raw, "%Execution of Shipment Transfer Worker ended%"), "Ended", NULL))
| transaction host startswith="Execution of Shipment Transfer Worker started" endswith="Execution of Shipment Transfer Worker ended" keepevicted=true 
| rex "Shipment Number: (?&amp;lt;ShipmentNumber&amp;gt;\d*)"
| eval Shipment_Status_Started =if(like(_raw, "%Execution of Shipment Transfer Worker started%"),"Started", NULL)
| eval Shipment_Status_Ended = if(like(_raw, "%Execution of Shipment Transfer Worker ended%"), "Ended", NULL) 
| table ShipmentNumber Shipment_Status_Started Shipment_Status_Ended&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;suppose that &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;EVENT GROUP B&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;ends with following event after 6 hours and then I want to create an Alert and mail with shipment number &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;000061016&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2022-12-20 19:43:19.097 +01:00 [ShipmentTransferWorker] **** Execution of Shipment Transfer Worker ended ****&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;How can I create trigger and email once the event ends?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 17:40:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-create-Alert-when-event-is-ended/m-p/624878#M11216</guid>
      <dc:creator>OnderSentira</dc:creator>
      <dc:date>2022-12-20T17:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Alert when event is ended</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-create-Alert-when-event-is-ended/m-p/624885#M11217</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/239571"&gt;@OnderSentira&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Is there a possibility that you have following scenario: -&lt;/P&gt;&lt;P&gt;A1 shipment started&lt;BR /&gt;A2 shipment started&lt;BR /&gt;A1 shipment ended&lt;BR /&gt;A2 shipment ended&lt;/P&gt;&lt;P&gt;Or its always in a sequential format: -&lt;/P&gt;&lt;P&gt;A1 shipment started&lt;BR /&gt;A1 shipment ended&lt;BR /&gt;A2 shipment started&lt;BR /&gt;A2 shipment ended&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 18:35:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-create-Alert-when-event-is-ended/m-p/624885#M11217</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2022-12-20T18:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Alert when event is ended</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-create-Alert-when-event-is-ended/m-p/624887#M11218</link>
      <description>&lt;P&gt;I have mostly the following scenario. It is not always in &lt;SPAN&gt;sequential&amp;nbsp;&lt;/SPAN&gt;format.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A1 shipment started&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A2 shipment started&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A1 shipment ended&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A2 shipment ended&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 18:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-create-Alert-when-event-is-ended/m-p/624887#M11218</guid>
      <dc:creator>OnderSentira</dc:creator>
      <dc:date>2022-12-20T18:55:09Z</dc:date>
    </item>
  </channel>
</rss>

