Splunk Search

histogram on search queries

atevs
New Member

Hi,

I am a new user to splunk.

Our splunk data consists of lines like:

engine id= error1

engine id= error3

engine id= error2

engine id= error3

I would like to be able to get histogram of how many errors of each types where found, without mention errors implicitly and ignoring id field.

(error1:1, error3:2, error2:1 in this case)

How can I do it ?

Thanks a lot,
Svetlana

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Assuming you have the error type extracted in a field called error_type, you can do this:

your base search | stats count by error_type
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 ...