You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
definition = (index="github" source="ghe_audit_log_monitoring://*") OR (index=ghes source=github_audit)
7
+
definition = (index="github" source="ghe_audit_log_monitoring://*") OR (index=ghes source=github_audit) OR (index=gitops source="github:enterprise:audit") OR (index=gh_audit_stream)
8
8
iseval = 0
9
9
10
10
[github_webhooks]
@@ -14,3 +14,32 @@ iseval = 0
14
14
[github_workflow_logs]
15
15
definition = index="github_workflow_logs"
16
16
iseval = 0
17
+
18
+
[devops_indexes]
19
+
definition = index="github_webhook" OR index="github_webhook2"
20
+
iseval = 0
21
+
22
+
[individual_commits]
23
+
definition = | spath commits{} output=commits \
24
+
| mvexpand commits \
25
+
| rex field=commits "(?<=\"id\"\:\")(?<commit_hash>\w*)"\
26
+
| rex field=commits "(?<=\"message\"\:\")(?<commit_message>(\w|\s)*)"\
27
+
| rex field=commits "(?<=\"username\"\:\")(?<commit_username>(\w|-)*(?=\"))"\
28
+
| rex field=commits "(?<=\"timestamp\"\:\")(?<commit_timestamp>[^\"]*(?=\"))"\
29
+
| rex field=commits "(?<=\"added\"\:\[)(?<commit_files_added>[^\]]*(?=\]))"\
30
+
| rex field=commits "(?<=\"removed\"\:\[)(?<commit_files_removed>[^\]]*(?=\]))"\
31
+
| rex field=commits "(?<=\"modified\"\:\[)(?<commit_files_modified>[^\]]*(?=\]))"
| eval ref = if((isnull('ref') AND isnotnull('pull_request.head.ref') AND ('eventtype'=="GitHub::PullRequest" OR 'eventtype'=="GitHub::PullRequest::Review")), 'pull_request.head.ref', if((isnull('ref') AND isnotnull('pull_request.base.ref') AND ('eventtype'=="GitHub::PullRequest" OR 'eventtype'=="GitHub::PullRequest::Review")), 'pull_request.base.ref', 'ref'))\
37
+
| rex field="ref" "(?<commit_branch>(?<=refs\/heads\/).*)" \
38
+
| eval commit_branch = if((isnull('commit_branch') AND isnotnull('pull_request.head.ref') AND ('eventtype'=="GitHub::PullRequest" OR 'eventtype'=="GitHub::PullRequest::Review")), 'pull_request.head.ref', if((isnull('commit_branch') AND isnotnull('pull_request.base.ref') AND ('eventtype'=="GitHub::PullRequest" OR 'eventtype'=="GitHub::PullRequest::Review")), 'pull_request.base.ref', if((isnull('commit_branch') AND isnotnull('ref')), 'ref', 'commit_branch')))\
39
+
| rex field="commit_branch" "(?<issueNumber>^\d*)"
0 commit comments