Skip to content

Commit 09808ab

Browse files
committed
Add pihole logrotate command
Signed-off-by: yubiuser <github@yubiuser.dev>
1 parent 9c86b64 commit 09808ab

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/main/pihole-command.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Pi-hole makes use of many commands, and here we will break down those required t
1515
| [Debugger](#debugger) | `pihole debug` |
1616
| [Log Flush](#log-flush) | `pihole flush` |
1717
| [Network Flush](#network-flush) | `pihole networkflush` |
18+
| [Log Rotate](#log-rotate) | `pihole logrotate`|
1819
| [Repair](#repair) | `pihole repair` |
1920
| [Tail](#tail) | `pihole tail` |
2021
| [Set password](#password) | `pihole setpassword` |
@@ -74,7 +75,17 @@ The Pi-hole debugger will attempt to diagnose any issues, and link to an FAQ wit
7475
| Script Location | [`/opt/pihole/piholeLogFlush.sh`](https://github.com/pi-hole/pi-hole/blob/master/advanced/Scripts/piholeLogFlush.sh) |
7576
| Example Usage | [`pihole flush`](https://discourse.pi-hole.net/t/the-pihole-command-with-examples/738#flushing-the-log) |
7677

77-
When invoked manually, this command will allow you to empty Pi-hole's log, which is located at `/var/log/pihole/pihole.log`. The command also serves to rotate the log daily, if the `logrotate` application is installed.
78+
When invoked manually, this command will allow you to empty Pi-hole's logs, which are located at `/var/log/pihole/` and removed the last 24h from the long-term database.
79+
80+
### Log Rotate
81+
82+
| | |
83+
| -------------- | -------------- |
84+
| Help Command | N/A |
85+
| Script Location | [`/opt/pihole/piholeLogRotate.sh`](https://github.com/pi-hole/pi-hole/blob/master/advanced/Scripts/piholeLogRotate.sh) |
86+
| Example Usage | [`pihole logrotate`] |
87+
88+
When invoked manually, this command will allow you rotate Pi-hole's logs, which are located at `/var/log/pihole/`.
7889

7990
### Network Flush
8091

0 commit comments

Comments
 (0)