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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...