Reporting

How to set up a scheduled search that looks for the usage of the delete command in my environment?

jward6004
Explorer

I want to set up a scheduled search that will look for the usage of the delete command in my environment.

This action is secured by the can_delete user role currently.

0 Karma

inventsekar
Ultra Champion

This search will show you if anyone has run the delete command .. you can save this as a scheduled search..

index=_audit sourcetype=audittrail action=search search=*delete* 
 | where match(search,"\|\s*delete")
 | table _time search user
0 Karma

sundareshr
Legend

Set you alert to this query. If count>0, alert

index=_audit sourcetype=audittrail delete | regex _raw="\|\s*delete" 
0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...