Splunk Search

When alert triggers, add detail to inline table

tmarlette
Motivator

So I have a search that triggers based upon how much memory is being used on any of my linux machines. 

 

 

index=nix sourcetype=freemem  host=`<mySystemHosts>`
| eval pctUsed=(totMemory-cacheMemory)/totMemory * 100
| where pctUsed > 85
| table _time host pctUsed

 

 

 

That alert triggers fine, but I would like to add some details from my 'ps' data set about each individual job that is running on said host. 

so let's assume that the above alert triggers, and generates a table of 3 hosts.  I would like to add 'ps' contextual details to each of those devices within the alert itself.  

 

 

Labels (3)
Tags (3)
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...