Splunk Search

How to search and table count for multiple fields?

vtsguerrero
Contributor

Can anyone help me making this table?
I have the field Status, wich has events Status=1, Status=2, Status=3.
I need to count events for each and make a table for each, example

Channel | Total Status = 1 | Total Status = 2 | Total Status = 3

Channel A
Channel B
Channel C

This is my current query:

index=main sourcetype=control | stats count, values(Status) as Status by STATUS | table Channel, count

Tags (3)
1 Solution

Ayn
Legend
index=main sourcetype=control | chart count over Channel by STATUS

?

View solution in original post

Ayn
Legend
index=main sourcetype=control | chart count over Channel by STATUS

?

vtsguerrero
Contributor

Thanks a lot Ayn! Solved my problems! 😄

0 Karma

vtsguerrero
Contributor

I forgot to mention that this table should also show per Channel for each line :X
What's the easiest way I can do this?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...