[dnstap] Could not integrate dnstap into logrotate: dnstap does not "obey" `named reload`
Daniel Stirnimann
daniel.stirnimann at switch.ch
Wed Aug 16 08:00:19 UTC 2017
Hi Harald,
You can use rndc to rotate the dnstap log file. Maybe you can integrate
this command into your logrotate configuration.
man rndc
...
dnstap -roll count
Close, rename and re-open the DNSTAP output file(s).
...
Daniel
On 11.08.17 19:03, Harald A. Irmer wrote:
> Hi,
>
> I integrated dnstap into /var/named/log: log_dnstap
>
>
> /etc/logrotate.d/bind:
>
> /var/named/log/log_* {
> daily
> rotate 10
> nomail
> compress
> delaycompress
> shred
> missingok
> notifempty
> create 0664 dns dns
> su dns dns
> dateext
> dateyesterday
> olddir OLD
> createolddir 0664 dns dns
> sharedscripts
> postrotate
> /etc/init.d/named reload > /dev/null
> find /var/named/log/OLD -mtime +10 -exec rm -f {} \;
> endscript
> }
>
> Is it possible that dnstab "obeys" `named reload`?
>
> That would be nice
>
>
> Yours
>
> Harald
>
>
>
> _______________________________________________
> dnstap mailing list
> dnstap at lists.redbarn.org
> http://lists.redbarn.org/mailman/listinfo/dnstap
>
More information about the dnstap
mailing list