Dashboards & Visualizations

What Changes are made on Alerts , Dashboard?

vn_g
Path Finder

How can I find out when who and what changes are made to below list in Splunk

- Alerts/Saved Searches

-Dashboards

0 Karma
1 Solution

impurush
Contributor

Hi @vn_g ,
For dashboard, the trail 3 is working perfectly, I have tested in my environment.

For Alert, I have modified your trail 3 query and getting the results correctly.

index=_internal sourcetype=splunkd_ui_access method=post saved/searches NOT StreamedSearch | table req_time,file,user | rename file as Alertname req_time as editTime

View solution in original post

0 Karma

impurush
Contributor

Hi @vn_g , As per my knowledge, you can see when and who accessed the UI of Saved searches and dashboards API, however, we cannot see what is changed because Splunk is not maintaining any versions of these knowledge objects. You may need some additional apps to monitor the changes.

vn_g
Path Finder

ok Thankyou for confirming.

My required output :

1) TimeOfTheAction, DashboardName, UserWhoModifiedit

2) TimeOfTheAction, SearchName, UserWhoModifiedit

Trials 1(ForAlerts) : index=_internal sourcetype=splunkd_conf data.asset_uri{}=savedsearches "data.optype_desc"="*"  | table _time data.optype_desc

Using the above I am not able to find the User who modified the saved search.

Trials 2 (For Dashboards) :index=_internal sourcetype=splunkd_ui_access method=post ui/views (edit OR editxml)  | table req_time,file,user | rename file as dashboard req_time as editTime

Above doesn't give any results

Trial 3 ( For Dashboards) : index=_internal sourcetype=splunkd_ui_access method=post ui/views NOT StreamedSearch | table req_time,file,user | rename file as dashboard req_time as editTime

Is above correct one?

 

 

 

0 Karma

impurush
Contributor

Hi @vn_g ,
For dashboard, the trail 3 is working perfectly, I have tested in my environment.

For Alert, I have modified your trail 3 query and getting the results correctly.

index=_internal sourcetype=splunkd_ui_access method=post saved/searches NOT StreamedSearch | table req_time,file,user | rename file as Alertname req_time as editTime

0 Karma

vn_g
Path Finder

Query : index=_internal sourcetype=splunkd_ui_access method=* ui/views NOT StreamedSearch
| table req_time,file,user,method
| rename file as dashboard req_time as editTime
| sort - editTime

Using the above query it is generating 2 events for each action.

Action : Create a new dashboard.

DashbordName Method
views                      GET
_new                      POST

Action : Delete the existing dashboard.
DashbordName Method
views                      GET
multidelte             POST

My requirement is i have to find out the Dashboard Name which is created or deleted
And also i have to get all the changes , updates , creation , detetion except GET method details.

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

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...