taillog Prevent grep interpeting search term as an option (#6318)

This commit is contained in:
Dominik 2025-06-29 07:08:21 +02:00 committed by GitHub
commit f2280eb330
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
pihole
View File

@ -396,7 +396,7 @@ tailFunc() {
# Color blocklist/denylist/wildcard entries as red
# Color A/AAAA/DHCP strings as white
# Color everything else as gray
tail -f $LOGFILE | grep --line-buffered "${1}" | sed -E \
tail -f $LOGFILE | grep --line-buffered -- "${1}" | sed -E \
-e "s,($(date +'%b %d ')| dnsmasq\[[0-9]*\]),,g" \
-e "s,(.*(denied |gravity blocked ).*),${COL_RED}&${COL_NC}," \
-e "s,.*(query\\[A|DHCP).*,${COL_NC}&${COL_NC}," \