<?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 alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Event-alert/m-p/671248#M15577</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262404"&gt;@Pravinsugi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;for each customerOrderNumber, you have three Received message classes,&lt;/LI&gt;&lt;LI&gt;you want to check that's this is true fro each one,&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;is it correct?&lt;/P&gt;&lt;P&gt;At first, next time, please share your samples in text format to avoid to rewrite all of them.&lt;/P&gt;&lt;P&gt;Then I suppose that you already extracted the two fields&amp;nbsp;customerOrderNumber and Received_message_class, otherwise you have to extract them, but to help you in this I need of your sample logs in text format.&lt;/P&gt;&lt;P&gt;Anyway, you should run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| stats 
   dc(Received_message_class) AS Received_message_class_count 
   values(Received_message_class) AS Received_message_class
   BY customerOrderNumber 
| eval status=if(Received_message_class_cont=3,"OK","there are only the following Messages: ".Received_message_class
| table customerOrderNumber status&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 10:26:37 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-12-08T10:26:37Z</dc:date>
    <item>
      <title>Event alert</title>
      <link>https://community.splunk.com/t5/Alerting/Event-alert/m-p/671247#M15576</link>
      <description>&lt;UL&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt; i have three events like received message class.if you seee the pic,you will be seeing 3 event for each customer .each event have customerordernumber.i want to check for each and every customer I have all three event message in the splunk log.how to write splunk query for that.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 10 Dec 2023 15:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Event-alert/m-p/671247#M15576</guid>
      <dc:creator>Pravinsugi</dc:creator>
      <dc:date>2023-12-10T15:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Event alert</title>
      <link>https://community.splunk.com/t5/Alerting/Event-alert/m-p/671248#M15577</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262404"&gt;@Pravinsugi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;for each customerOrderNumber, you have three Received message classes,&lt;/LI&gt;&lt;LI&gt;you want to check that's this is true fro each one,&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;is it correct?&lt;/P&gt;&lt;P&gt;At first, next time, please share your samples in text format to avoid to rewrite all of them.&lt;/P&gt;&lt;P&gt;Then I suppose that you already extracted the two fields&amp;nbsp;customerOrderNumber and Received_message_class, otherwise you have to extract them, but to help you in this I need of your sample logs in text format.&lt;/P&gt;&lt;P&gt;Anyway, you should run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| stats 
   dc(Received_message_class) AS Received_message_class_count 
   values(Received_message_class) AS Received_message_class
   BY customerOrderNumber 
| eval status=if(Received_message_class_cont=3,"OK","there are only the following Messages: ".Received_message_class
| table customerOrderNumber status&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 10:26:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Event-alert/m-p/671248#M15577</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-12-08T10:26:37Z</dc:date>
    </item>
  </channel>
</rss>

