All Apps and Add-ons

Sanity Check on a tag please

daniel333
Builder

All,

So trying to make a quick tag to discover command OS metric issues. Basically I want a tag called tag=osproblem

I want it to return hosts that -
90% or higher CPU, RAM
90% disk space used
Any swap being used

Here is the start of my work. Just want to make sure there is not a smarter way of doing this before I commit to this approach -

tag=os pctCPU=* OR pctMEM=* | where pctCPU>90 OR pctMEM>90

It doesn't appear that I can use "where" in a eventtype. Any idea how I could attack this?

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You should be able to use tag=os (pctCPU>90 OR pctMEM>90) in an eventtype, no need for where.

View solution in original post

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You should be able to use tag=os (pctCPU>90 OR pctMEM>90) in an eventtype, no need for where.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...