Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pihole
diff options
context:
space:
mode:
authorAdam Warner <me@adamwarner.co.uk>2020-09-05 16:15:03 +0300
committerChristian König <ckoenig@posteo.de>2022-05-15 07:46:23 +0300
commit36dd533ef3716730378eb386acbd30a1300ff0c9 (patch)
tree347f8c147f7e5f55c728375040c5c5ec53ebec05 /pihole
parent0decc1252b75908f8d186ac060a6d819c4276dca (diff)
use directory /var/log/pihole/ for log storage
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
Diffstat (limited to 'pihole')
-rwxr-xr-xpihole8
1 files changed, 4 insertions, 4 deletions
diff --git a/pihole b/pihole
index f51fd956..965f6288 100755
--- a/pihole
+++ b/pihole
@@ -254,9 +254,9 @@ Example: 'pihole logging on'
Specify whether the Pi-hole log should be used
Options:
- on Enable the Pi-hole log at /var/log/pihole.log
- off Disable and flush the Pi-hole log at /var/log/pihole.log
- off noflush Disable the Pi-hole log at /var/log/pihole.log"
+ on Enable the Pi-hole log at /var/log/pihole/pihole.log
+ off Disable and flush the Pi-hole log at /var/log/pihole/pihole.log
+ off noflush Disable the Pi-hole log at /var/log/pihole/pihole.log"
exit 0
elif [[ "${1}" == "off" ]]; then
# Disable logging
@@ -382,7 +382,7 @@ tailFunc() {
# Color blocklist/blacklist/wildcard entries as red
# Color A/AAAA/DHCP strings as white
# Color everything else as gray
- tail -f /var/log/pihole.log | grep --line-buffered "${1}" | sed -E \
+ tail -f /var/log/pihole/pihole.log | grep --line-buffered "${1}" | sed -E \
-e "s,($(date +'%b %d ')| dnsmasq\[[0-9]*\]),,g" \
-e "s,(.*(blacklisted |gravity blocked ).*),${COL_RED}&${COL_NC}," \
-e "s,.*(query\\[A|DHCP).*,${COL_NC}&${COL_NC}," \