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

Discussion