Skip to content

Commit a1cdc23

Browse files
committed
Fix Dashboard Edits collector: use edit_ui_view action from audit logs
1 parent 0385bce commit a1cdc23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

default/savedsearches.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ description = Collects dashboard edit/creation metrics from audit logs
2525
dispatch.earliest_time = -10m
2626
dispatch.latest_time = now
2727
enableSched = 0
28-
search = index=_audit (action=rest_apps_view_post OR action=rest_apps_view_put) object_type=view OR object="*:*" | rex field=object "(?<app>[^:]+):(?<dashboard_name>.+)" | eval dashboard_uri="/app/".app."/".dashboard_name | lookup dashboard_registry dashboard_uri OUTPUT pretty_name app as reg_app owner | where isnotnull(pretty_name) | stats count by dashboard_uri, pretty_name, app, user, action | eval activity_type=if(action="rest_apps_view_post", "create", "edit"), metric_name="dashboard.edits" | mcollect index=caca_metrics split=t pretty_name app user activity_type
28+
search = index=_audit action=edit_ui_view | rex field=object "(?<app>[^:]+):(?<dashboard_name>.+)" | where isnotnull(dashboard_name) | eval dashboard_uri="/app/".app."/".dashboard_name | lookup dashboard_registry dashboard_uri OUTPUT pretty_name app as reg_app owner | where isnotnull(pretty_name) | stats count by dashboard_uri, pretty_name, app, user | eval activity_type="edit", metric_name="dashboard.edits" | mcollect index=caca_metrics split=t pretty_name app user activity_type
2929
schedule_priority = default
3030
schedule_window = 5
3131
dispatchAs = owner

0 commit comments

Comments
 (0)