Splunk Search

Pie chart merging two sources

avgilbeyzz
Loves-to-Learn

I have a table that shows the number of missing patches for our servers. I am trying to create a pie chart that will show what % of all of our servers are missing patches. I have tried entering a lookup file that has a list of all our servers, and also added another sourcetype with that same list. I can't seems to figure out how I can combine the two so I can view the list of servers that need a patch against the total list of servers we have.

Labels (3)
0 Karma

renjith_nair
Legend
  • Use the lookup to store desired list of servers
  • Search for events where the patching is complete
  • Compare the servers in the event against the lookup entries

Here is a run anywhere example

|makeresults|eval country="Germany Australia"|makemv country|mvexpand country
|stats count by country
|inputlookup geo_attr_countries.csv append=true
|fillnull count value=0
|stats sum(count) as count by country

Here those countries which are in the events (makeresults) will have a count 1 and others 0. In your case, you may use it to differentiate between patched and unpatched and then find %

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...