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!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...