# pihole automatic log delete?

**URL:** <https://discourse.pi-hole.net/t/pihole-automatic-log-delete/25342>\
**Category:** Help\
**Created:** [November 15, 2019, 3:35pm UTC](https://discourse.pi-hole.net/t/pihole-automatic-log-delete/25342 "2019-11-15T15:35:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)\
**Post date:** [November 15, 2019, 3:56pm UTC](https://discourse.pi-hole.net/t/pihole-automatic-log-delete/25342/2 "2019-11-15T15:56:31Z")

</div>

Pi-hole employs log rotation for its own log files, so file size consumption is limited to the amount of data logged within whatever period you've configured. If you stick with the defaults, Pi-hole rotates its logs once a day, at midnight, and keeps logs for the last five days.

Be aware that other components of your system employ logging as well, just as any Linux system would. This especially includes logs generated by lighttpd, the web server Pi-hole uses by default.

For a list of files and locations (including logs) that Pi-hole is using or at least aware of (if not controlling them), refer to

> [@What files does Pi-hole use?](https://discourse.pi-hole.net/t/what-files-does-pi-hole-use/1684):
>
> Note: FAQ updated in September 2022 to reflect files locations for Pi-Hole V5.12. /etc/.pihole/ This directory is a clone of the [pi-hole repo](https://github.com/pi-hole/pi-hole.git). During installation, the repository is cloned here so the files Pi-hole needs can be copied to your system. /etc/cron.d/ pihole: the cron file that runs scheduled tasks such as rotating and flushing the log files or downloading the latest updates from the blocklist sources /etc/dnsmasq.d/ 01-pihole.conf: the config specific to Pi-hole that controls …

---

_[View the full topic](https://discourse.pi-hole.net/t/pihole-automatic-log-delete/25342)._
