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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...