Skip to content

Commit e166499

Browse files
committed
Added workflow logs macro
Remove hard coded reference to a specific index for workflow logs and use a macro.
1 parent 143e189 commit e166499

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

github_app_for_splunk/default/data/ui/views/workflow_details.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
<title>Workflow Run Logs</title>
195195
<event>
196196
<search>
197-
<query>index="github_workflow_logs" workflowID::$workflow_id$ | sort _time</query>
197+
<query>`github_workflow_logs` workflowID::$workflow_id$ | sort _time</query>
198198
<earliest>0</earliest>
199199
<sampleRatio>1</sampleRatio>
200200
</search>

github_app_for_splunk/default/macros.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ iseval = 0
1111
definition = index=github_webhook
1212
iseval = 0
1313

14+
[github_workflow_logs]
15+
definition = index="github_workflow_logs"
16+
iseval = 0

0 commit comments

Comments
 (0)