Splunk Search

How to write the logic for below condition?

santhannerella
New Member

I have a situation where i will get the success message log when there is response, and there won't be any log in case of failure, I need to show a failure message if i don't get any response. Can you please help me with this.

case:success
Name status Msgtype
F1 null request
F1 null request
F1 Success response

Case: failure

Name status Msgtype
F1 null request
F1 null request
F1 failure response

0 Karma

to4kawa
Ultra Champion

https://docs.splunk.com/Documentation/Splunkbase/splunkbase/Answers/Questions#Tips_for_getting_your_...

your search
| appendpipe [|stats count
| eval message="There is no result"
| where count = 0 | table message ]
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...