Skip to content

Commit 8454320

Browse files
committed
Fix Dashboard Edits collector to use name/app fields instead of missing object field
1 parent 9b44a2a commit 8454320

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 = 1
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 as "dashboard.edits" by dashboard_uri, pretty_name, app, user | eval activity_type="edit" | mcollect index=caca_metrics split=t pretty_name app user activity_type
28+
search = index=_audit action=edit_ui_view | eval dashboard_name=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 as "dashboard.edits" by dashboard_uri, pretty_name, app, user | eval activity_type="edit" | 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)