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!

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...

[Live Demo] Watch SOC transformation in action with the reimagined Splunk Enterprise ...

Overwhelmed SOC? Splunk ES Has Your Back Tool sprawl, alert fatigue, and endless context switching are making ...

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...