OPNsense Forum

English Forums => General Discussion => Topic started by: JL on January 28, 2023, 08:21:49 PM

Title: Compressing resolver (Unbound) logs is not possible ?
Post by: JL on January 28, 2023, 08:21:49 PM
From some reason i ended up with over 60GB of logs for unbound.

These are not compressed. I had hoped opnsense would compress the logs automatically, yet i fail to find an option to configure it do so. Typically on a *nix system there's little in the way for reading compressed text log files so I'd prefer to go ahead.

Is there anything to consider for doing so ?

Documentation seems lacking.
Title: Re: Compressing resolver (Unbound) logs is not possible ?
Post by: cookiemonster on January 28, 2023, 11:10:27 PM
You could have a look at the manual page for newsyslog https://man.freebsd.org/cgi/man.cgi?query=newsyslog.conf&sektion=5
It seems there is an example that could be used in /etc/newsyslog.conf.d/nginx as those are compressed in /var/log/nginx
Title: Re: Compressing resolver (Unbound) logs is not possible ?
Post by: Patrick M. Hausen on January 29, 2023, 04:13:57 AM
Or install with ZFS, which will do transparent compression for everything.