Splunk Search

Count all events matching field value?

sjs
Path Finder

My data looks something like this

sjs_0-1673402480170.png

The status can be either SUCCESS or FAILED, I want to count the total number of events that has status as FAILED and status as SUCCESS.

 

FYI: The status is not a direct field, I had to extract it out by using 

| rex "status=(?<Status>[^,]+)"

 

Labels (1)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust
your search and your rex...
| stats count by status

View solution in original post

sjs
Path Finder

Thanks it helped 🥳🥳🥳

0 Karma

bowesmana
SplunkTrust
SplunkTrust
your search and your rex...
| stats count by status
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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