Splunk Search

Evaluate a combination of sourcetypes

dannux
Path Finder

Hi Everyone,

I am doing the following search

sourcetype="a" OR sourcetype="b" OR sourcetype="c" CPU_IDLE<40 | timechart span="1m" count(CPU_IDLE) by sourcetype

I get the number separate by each sourcetype but I would like to get only one number which is the sum of all the events that matches the conditions in the sourcetypes that I am analyzing.

Any ideas how to do that?

Ideally I want to use this number to create a chart after.

Thanks,
Dan

0 Karma

Ayn
Legend

Is there a reason why you've split the timechart by sourcetype? Because that's why it's showing you a count...per sourcetype. Just remove that and it won't.

dannux
Path Finder

Yes, the reason is that each source type has 10 servers so totally we have 50 servers doing the same function if I group more than 10 servers under a source type and I try to create a chart only the variables will be available. I need to see each of them so I can analyze each server as well. Thank

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...