best practice for unbound logs with logrotate
ѽ҉ᶬḳ℠
vtol at gmx.net
Mon Jul 29 19:35:27 UTC 2019
On 29/07/2019 18:30, Jaap Akkerhuis wrote:
> ѽ҉ᶬḳ℠ via Unbound-users writes:
>
> > Have tried various settings in logroate but none seems to able to tame
> > the unbound logs.
> >
> > Anyone with a similar usecase who would not mind sharing some good
> > practice for unbound logs with logrotate?
>
> I use syslog for logging, but if you log to file and use logrotate,
> you need to tell unbound to release the logfile. Thefore I suggest
> to do something like:
>
> /var/log/unbound.log {
> rotate 5
> weekly
> postrotate
> unbound-control log_reopen
> endscript
> }
>
> See also man unbound-control.
>
> jaap
Neat. Thank you for the pointer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4174 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20190729/dac476f2/attachment.bin>
More information about the Unbound-users
mailing list