Splunk Search

Is it possible to consolidate all results from my search for all processes in my infrastructure and generate a summary?

ryantzj
Explorer

Hi,
I have this request from my beloved client where he needs to have a dashboard that shows the availability of processes for the entire infrastructure in boolean such as "working", "not working".

sourcetype=process java  | stats dc(pid) as value | eval threshold =if(match(value,threshold),"working","not working")

I am using the query above daily to check if a right amount of processes is running and it will return "working" and "not working". My question is, can i consolidate all the results from the query above for each processes and generate a summary result to see if all running process met the threshold for a server? His ultimate goal is to have a single value box that only shows "working" or "not working" that represent the specific servers group.

We have tried our way with "writing data using splunk"
outputcsv but by doing this we need to schedule jobs to keep the csv updated which is practically difficult since we have a good number of servers and processes.

Thanks for the power booster ninja,
Ryan T

0 Karma
1 Solution

mzorzi
Splunk Employee
Splunk Employee

You can use a

| stats count by tag::host_type

You can even take advantage of summary indexes, with a

| sistats count by tag::host_type

View solution in original post

mzorzi
Splunk Employee
Splunk Employee

You can use a

| stats count by tag::host_type

You can even take advantage of summary indexes, with a

| sistats count by tag::host_type

ryantzj
Explorer

Hi thanks for your answer mzorzi, do you mind elaborate more ??

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...