Splunk Enterprise

How do I get a count of Low, Medium, High, Critical in a Splunk Search?

nrs011
Observer

How do I get a count of Low, Medium, High, Critical in a Splunk Search?

 

This is the current search I am using:

`get_tenable_index` sourcetype="tenable:sc:vuln" severity=Low OR severity=Medium OR severity=High OR severity=Critical | dedup plugin_id, port, protocol, sc_uniqueness, source | eval key=plugin_id."_".port."_".protocol."_".sc_uniqueness."_".source | table severity, synopsis, solution, port, protocol, ip | outputlookup append=true key_field=key sc_vuln_data_lookup

Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Use the eventstats command to get a count.  The by option creates a separate count for each field value.

`get_tenable_index` sourcetype="tenable:sc:vuln" severity=Low OR severity=Medium OR severity=High OR severity=Critical 
| dedup plugin_id, port, protocol, sc_uniqueness, source 
| eval key=plugin_id."_".port."_".protocol."_".sc_uniqueness."_".source 
| eventstats count by severity
| table severity, synopsis, solution, port, protocol, ip 
| outputlookup append=true key_field=key sc_vuln_data_lookup

 

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...