Splunk Enterprise Security

search which finds the addition or deletion to the log sources happened since last week by index and loss/gain must be specified in percentage

smithahc1966
New Member

I am trying to write a search which finds the addition or deletion to the log sources happened since last week by index and loss/gain must be specified in percentage.

0 Karma

lakshman239
Influencer

One option would be to schedule a search to get source, sourcetype and index and output the results to a summary index and then you can run searches against that to compare for any days.

 | tstats count where index=* groupby index, sourcetype, source, _time span=1d | collect index=summary

The above will store the results to summary index and you can then schedule another search to look for changes by sourcetype or source and then cal the perc

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!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...