Alerting

Event alert

Pravinsugi
Path Finder
  •  
  •  
  •  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.
Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Pravinsugi,

let me understand:

  • for each customerOrderNumber, you have three Received message classes,
  • you want to check that's this is true fro each one,

is it correct?

At first, next time, please share your samples in text format to avoid to rewrite all of them.

Then I suppose that you already extracted the two fields 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.

Anyway, you should run something like this:

<your_search>
| 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

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Best Strategies to Optimize Observability Costs

 Join us on Tuesday, May 6, 2025, at 11 AM PDT / 2 PM EDT for an insightful session on optimizing ...

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...