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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...