diff --git a/startupscript/butane/gcp/fluent-bit.conf b/startupscript/butane/gcp/fluent-bit.conf new file mode 100644 index 00000000..7967aeda --- /dev/null +++ b/startupscript/butane/gcp/fluent-bit.conf @@ -0,0 +1,31 @@ +[SERVICE] + Flush 1 + +[INPUT] + Name systemd + Tag vm-journald-startup-logs + Path /var/log/journal + Systemd_Filter _SYSTEMD_UNIT=devcontainer.service + +[INPUT] + Name systemd + Tag vm-journald-logs + Path /var/log/journal + Systemd_Filter _SYSTEMD_UNIT=docker.service + Systemd_Filter _SYSTEMD_UNIT=idle-shutdown.service + Systemd_Filter _SYSTEMD_UNIT=proxy-prober.service + Systemd_Filter _SYSTEMD_UNIT=proxy-readiness.service + Systemd_Filter _SYSTEMD_UNIT=locksmithd.service + +[INPUT] + Name tail + Tag vm-docker-logs + Parser docker + Path /var/lib/docker/containers/*/*.log + Path_key filepath + Skip_Long_Lines On + +[OUTPUT] + name stackdriver + match vm-* + resource gce_instance