Splunk Enterprise Security

Enterprise Security 2.2.1 how do i clear sa_vulns tsidx ?

bnafziger
Engager

I added a new vulnerability data input - a new vmscanner. Cool beans! Now I'd like to clear the sa _ vulns tsidx and reload all the vm data. I set the sa _ vulns tsidx retention time to 60 seconds (see below) and restarted splunk but that did not clear it. How long would it take to clear it? Is that the right approach? I'd be glad to dig deeper if you can point me to the proper docs.

Thanks!

-sh-4.1$ bin/splunk cmd btool tsidx_retention list sa_vuln
[sa_vulns]
maxTotalDataSizeMB = 500000
retentionTimePeriodInSecs = 60
-sh-4.1$
0 Karma

bnafziger
Engager

In the end I was successful by stopping splunk, renaming the existing tsidx file, restarting splunk and then running the SA-NetworkProtection postprocess.conf Vuln TSIDX Generating Search for sa_vulns over the new large time-frame (you will need to have some ideas how post process works with saved searches). The results display nicely in the Network Vuln Dashboards.

[WARNING WARNING WARNING there are other non vmscanner events that are classified as vulnerabilities which will be GONE once you rename the existing tsidx file]

For those treading down similar roads, the SA-NetworkProtection postprocess.conf Vuln TSIDX Generating Search only runs over a 15 min interval. Since my Vuln scanner script only runs once a day, I scheduled a daily sourcetype=myvmscanner Vuln TSIDX Generating Search that runs over the past 24 hours.

mloven_splunk
Splunk Employee
Splunk Employee

Hey Brian! Glad you got it sorted out!

0 Karma
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.


Introducing Unified TDIR with the New Enterprise Security 8.2

Read the blog
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...