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!

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...