Skip to content

Commit 23d4f17

Browse files
yuhuyoyoYu Hu
andauthored
add fluent-bit conf for gcp (#278)
* add fluent-bit conf * address comment * journald logs * address comment * Modify output match pattern for Fluent Bit Updated Fluent Bit configuration to match all VM logs. --------- Co-authored-by: Yu Hu <[email protected]>
1 parent bed2697 commit 23d4f17

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[SERVICE]
2+
Flush 1
3+
4+
[INPUT]
5+
Name systemd
6+
Tag vm-journald-startup-logs
7+
Path /var/log/journal
8+
Systemd_Filter _SYSTEMD_UNIT=devcontainer.service
9+
10+
[INPUT]
11+
Name systemd
12+
Tag vm-journald-logs
13+
Path /var/log/journal
14+
Systemd_Filter _SYSTEMD_UNIT=docker.service
15+
Systemd_Filter _SYSTEMD_UNIT=idle-shutdown.service
16+
Systemd_Filter _SYSTEMD_UNIT=proxy-prober.service
17+
Systemd_Filter _SYSTEMD_UNIT=proxy-readiness.service
18+
Systemd_Filter _SYSTEMD_UNIT=locksmithd.service
19+
20+
[INPUT]
21+
Name tail
22+
Tag vm-docker-logs
23+
Parser docker
24+
Path /var/lib/docker/containers/*/*.log
25+
Path_key filepath
26+
Skip_Long_Lines On
27+
28+
[OUTPUT]
29+
name stackdriver
30+
match vm-*
31+
resource gce_instance

0 commit comments

Comments
 (0)