Skip to content

Commit 8b2716a

Browse files
fix: Update Jenkins Fluent-bit for capture hostname. (#92)
Update to observe-jenkins.conf to capture hostname for Jenkins installation.
1 parent 350b4e6 commit 8b2716a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

config_files/observe-jenkins.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@
2828
Match jenkins*
2929
call append_tag
3030
code function append_tag(tag, timestamp, record) new_record = record new_record["_tag"] = tag return 1, timestamp, new_record end
31+
[FILTER]
32+
Name record_modifier
33+
Match *
34+
Record host ${HOSTNAME}
35+
Record datacenter REPLACE_WITH_DATACENTER
36+
Record obs_ver 20230412
37+
Remove_key _MACHINE_ID
3138
[OUTPUT]
3239
name http
3340
match jenkins*

0 commit comments

Comments
 (0)