diff options
author | Adam Warner <me@adamwarner.co.uk> | 2020-09-05 16:15:03 +0300 |
---|---|---|
committer | Christian König <ckoenig@posteo.de> | 2022-05-15 07:46:23 +0300 |
commit | 36dd533ef3716730378eb386acbd30a1300ff0c9 (patch) | |
tree | 347f8c147f7e5f55c728375040c5c5ec53ebec05 /pihole | |
parent | 0decc1252b75908f8d186ac060a6d819c4276dca (diff) |
use directory /var/log/pihole/ for log storage
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
Diffstat (limited to 'pihole')
-rwxr-xr-x | pihole | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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}," \ |