diff options
| author | Shulhan <ms@kilabit.info> | 2023-07-15 14:53:27 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-07-15 15:07:21 +0700 |
| commit | 1d88da4acbf721ab319261e84ac27985a5812770 (patch) | |
| tree | e043be207aa64f5dac51c7dc8784b21e2893b305 /0001-build-sh.patch | |
| parent | 29d6096821e59ac2aca3de8c0cdd74a58af75663 (diff) | |
| download | google-cloud-ops-agent-git-1d88da4acbf721ab319261e84ac27985a5812770.tar.xz | |
all: patch the default config.yaml to use systemd_journald
Previosly, the default config.yaml receivers for syslog is using
"type: files" that read /var/log/messages and /var/log/syslog.
In Arch Linux, those files are not exist anymore, so we replace the
with "type: systemd_journald" to make all the system logs forwarded to
Cloud Logging.
Diffstat (limited to '0001-build-sh.patch')
| -rw-r--r-- | 0001-build-sh.patch | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/0001-build-sh.patch b/0001-build-sh.patch index 4461f55..29b9210 100644 --- a/0001-build-sh.patch +++ b/0001-build-sh.patch @@ -27,9 +27,19 @@ index 4a97050f7..041b3ac72 100755 - # N.B. Don't include $DESTDIR itself in the tarball, since mktemp -d will create it mode 0700. (cd "$DESTDIR" && tar -czf /tmp/google-cloud-ops-agent.tgz *) -diff --git a/submodules/fluent-bit b/submodules/fluent-bit ---- a/submodules/fluent-bit -+++ b/submodules/fluent-bit -@@ -1 +1 @@ --Subproject commit 97a5e9dcf3f9d2e2107660cf73f6ef253fd227cd -+Subproject commit 97a5e9dcf3f9d2e2107660cf73f6ef253fd227cd-dirty +diff --git a/confgenerator/built-in-config-linux.yaml b/confgenerator/built-in-config-linux.yaml +index cd84fc39b..10eb9c2fe 100644 +--- a/confgenerator/built-in-config-linux.yaml ++++ b/confgenerator/built-in-config-linux.yaml +@@ -1,10 +1,7 @@ + logging: + receivers: + syslog: +- type: files +- include_paths: +- - /var/log/messages +- - /var/log/syslog ++ type: systemd_journald + service: + pipelines: + default_pipeline: |
