Splunk Search

Qualys: Vulnerabilites Up trend/Down trend Over Last 7 Days

sammygarcia
New Member

I am trying to put together a search that shows all of my vulnerabilities in Qualys for all of my servers that are being scanned. I want to be able to show vulnerability increase or decrease from the scan that runs every week. I have put together the following search that shows me the amount of vulnerabilities that were fixed during the last patching window and scan cycle but I think I am making the end goal way more complicated than it should be. Thanks for any help anyone can provide!

index=qualys IP=* STATUS=FIXED
| convert mktime(LAST_FIXED_DATETIME) timeformat=%Y-%m-%dT%H:%M:%S%Z
| eval lfd=round(relative_time(now(), "-7d@d"))
| where LAST_FIXED_DATETIME >= lfd
| eval isitfixed=if(STATUS="FIXED","yes","no")
| streamstats count(eval(isitfixed="yes")) as Fixed
| timechart last(Fixed) AS Fixed span=7d

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...