Setting up system for debug logging

From Libreswan
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Systemd journald rate limits logging. If you enable plutodebug logging you don't get full logs without disabling rate limiting.

Disable rate limiting in journald

  1. mkdir -p /etc/systemd/journald.conf.d
  2. vi /etc/systemd/journald.conf.d/local.conf
[Journal]
RateLimitInterval=0
RateLimitBurst=0
  1. systemctl daemon-reload
  2. systemctl restart systemd-journald.service

Disable rate limiting in rsyslogd

  1. vi /etc/rsyslog.d/local.conf
# Disable IMjournal rate limiting
$IMUXSockRateLimitInterval 0
$IMJournalRatelimitInterval 0
  1. systemctl restart rsyslogd.service