Splunk Search

How to Get the list of success values in 'If' condition?

kiran007
Explorer

Hi,

I need list of all the successful events details in the 'If' condition. For those successful list I need to extract few more details and send alert. 

I tried stats count it is giving only count and for the eventstats it is giving all the values(Success and Failed events).

Please help me here to get the detail list of successful events.

Please see the below attachment.

Labels (2)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Honestly, I don't understand. If a single event constitutes either a success or failure, why do the stats at all?

Just do an eval as you're doing and then filter out your events with | where. You can even skip the eval at all.

<your_base_search> | rex/eval/whatever | where Time>2000

Or am I missing something here?

kiran007
Explorer

Thanks Rick

Actually, I'm very new to splunk. Exploring and Experimenting Splunk😀

0 Karma

PickleRick
SplunkTrust
SplunkTrust

No worries. Everyone has to start somewhere 🙂

Have fun with Splunk!

0 Karma

kiran007
Explorer

I'm getting complete events output if I use eventstats. I want only success event list.

Please help me out.

Please see the attachment.

0 Karma
Get Updates on the Splunk Community!

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

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...