iTranslated by AI
The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
✂️
How to disable journald log forwarding in Mezmo (LogDNA)
Conclusion
Set two environment variables (in my environment, these are set in /etc/logdna.env)
MZ_SYSTEMD_JOURNAL_TAILER=false
LOGDNA_JOURNALD_PATHS=""
Restart the logdna-agent with systemctl restart logdna-agent and check the latest logs with journalctl -u logdna-agent to confirm that the environment variables have been loaded.
Verify that the following is displayed in the logs
config: effective configuration:
...
journald:
paths:
- ''
systemd_journal_tailer: false
Verify that the following is NOT displayed in the logs
logdna_agent::_main: Enabling journalctl event source
References
- PR that created a toggle to collect journald logs
https://github.com/logdna/logdna-agent-v2/pull/457 - The part of the program that reads journald
https://github.com/logdna/logdna-agent-v2/blob/fd583f66da2afc1571163b6c82de648247b18fe4/bin/src/_main.rs#L305
Discussion