Alerting

Does _audit keep track of alert's modifications?

danielbb
Motivator

Could it be? - there is no audit log (tied to a user) when an alert gets modified and saved? I really looked hard and I'm stuck trying to use Rest APIs and compare the rule before/after.

Labels (1)
0 Karma

dmarling
Builder

Hi @danielbb,

There are some limited things you can use to track who and when an alert is modified, but tracking what was modified can be a bit tricky.  My friend @efavreau and I presented at last years .conf about how to track changes to your knowledge objects and how to export them from Splunk so you can do version controlling outside of splunk.  In that presentation we have a query that you can use to track who and when a change is made to an object here:

https://github.com/paychex/Splunk.Conf19/blob/master/CYA_Audit_Splunk_Query

Lines 36-40 in that query won't work without you creating a lookup file of your objects that can be done with this but check out the readme here first.

If you want you can check out the slide deck and presentation itself here: https://conf.splunk.com/watch/conf-online.html?search=FN1315#/

As for the what that was changed you may be able to find some information in the splunkd_conf sourcetype in the _internal index:

index=_internal sourcetype=splunkd_conf data.asset_uri=savedsearches data.optype_desc=WRITE_STANZA

The data.payload arrays will have the information that was changed and the data.asset_uri array will have the specific savedsearch/report/alert that was modified.

If this comment/answer was helpful, please up vote it. Thank you.
Tags (2)
Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...