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!

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