[prev in list] [next in list] [prev in thread] [next in thread] 

List:       unbound-users
Subject:    Re: best practice for unbound logs with logrotate
From:       ѽ҉ᶬḠ<unbound-users () nlnetlab
Date:       2019-07-29 19:35:27
Message-ID: 5236a7e8-0ac8-bab9-d06a-b25b756bd723 () gmx ! net
[Download RAW message or body]


On 29/07/2019 18:30, Jaap Akkerhuis wrote:
>   =D1=BD=D2=89=E1=B6=AC=E1=B8=B3=E2=84=A0 via Unbound-users writes:
>
>   > Have tried various settings in logroate but none seems to able to t=
ame
>   > 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


["smime.p7s" (application/pkcs7-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic