Created
September 30, 2020 01:50
-
-
Save wheel5up/ff50593cddc16c0dd4c881d75e687899 to your computer and use it in GitHub Desktop.
Flush the pihole logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@pi-hole2:~ $ ls -lasrt /var/log |tail -10 | |
76 -rw-r----- 1 root adm 70204 Sep 29 06:25 syslog.1 | |
12152 -rw-r--r-- 1 pihole pihole 12441230 Sep 30 00:00 pihole.log.1 | |
4 -rw-r--r-- 1 pihole pihole 559 Sep 30 00:00 pihole-FTL.log.1 | |
4 drwxr-xr-x 9 root root 4096 Sep 30 00:00 . | |
1160 -rw-r--r-- 1 pihole pihole 1180366 Sep 30 02:16 pihole.log | |
80 -rw-r----- 1 root adm 75936 Sep 30 02:16 daemon.log | |
84 -rw-r----- 1 root adm 80478 Sep 30 02:17 auth.log | |
8 -rw-r--r-- 1 pihole pihole 6392 Sep 30 02:18 pihole-FTL.log | |
108 -rw-r----- 1 root adm 106342 Sep 30 02:18 syslog | |
52 -rw-r----- 1 root adm 50172 Sep 30 02:18 messages | |
pi@pi-hole2:~ $ pihole flush | |
[✓] Restarting DNS server | |
[✓] Flushed /var/log/pihole.log | |
[✓] Deleted 34647 queries from database | |
pi@pi-hole2:~ $ ls -lasrt /var/log |tail -10 | |
4 -rw-r--r-- 1 pihole pihole 213 Sep 30 00:00 pihole-FTL.log.2.gz | |
1156 -rw-r--r-- 1 pihole pihole 1180366 Sep 30 02:48 pihole.log.1 | |
8 -rw-r--r-- 1 pihole pihole 6547 Sep 30 02:48 pihole-FTL.log.1 | |
4 drwxr-xr-x 9 root root 4096 Sep 30 02:48 . | |
0 -rw-r--r-- 1 pihole pihole 0 Sep 30 02:48 pihole.log | |
84 -rw-r----- 1 root adm 79322 Sep 30 02:48 daemon.log | |
88 -rw-r----- 1 root adm 83779 Sep 30 02:48 auth.log | |
8 -rw-r--r-- 1 pihole pihole 4346 Sep 30 02:48 pihole-FTL.log | |
748 -rw-r----- 1 root adm 760842 Sep 30 02:48 syslog | |
692 -rw-r----- 1 root adm 700651 Sep 30 02:48 messages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment