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 (3)
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!

Harnessing Splunk’s Federated Search for Amazon S3

Managing your data effectively often means balancing performance, costs, and compliance. Splunk’s Federated ...

Infographic provides the TL;DR for the 2024 Splunk Career Impact Report

We’ve been buzzing with excitement about the recent validation of Splunk Education! The 2024 Splunk Career ...

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...