Talk:Pi-hole

From ArchWiki
Jump to navigation Jump to search

Set up logrotate on Pi-hole

The pi-hole-serverAUR package comes with a "prebuilt" logrotate script here :

/etc/pihole/logrotate

But the Pi-hole's logrotate will not be "enabled" until you copy this file in the "/etc/logrotate.d/" directory, causing the Pi-hole's log files to grow up infinitely.

Unless you want to do your own logrotate script, you should copy the default one into the logrotate directory in order to activate it (use "sudo" if needed) :

cp -p /etc/pihole/logrotate /etc/logrotate.d/pihole

Antiz (talk) 20:21, 16 November 2021 (UTC)

there's a systemd timer for log rotation. all of above is useless. --Max.bra (talk) 21:51, 18 November 2021 (UTC)