Added wildcards to nlog

This commit is contained in:
2025-02-27 08:29:27 -05:00
parent 73eafb12c8
commit 10dd1f193d
+1 -1
View File
@@ -119,7 +119,7 @@ fi
timeSub="" timeSub=""
[ -z "$noTime" ] && timeSub="&& sub (/^\[[0-9]{10}]/, strftime (\"%Y-%m-%d %H:%M:%S\", substr (\$1, 2, 10)), \$1)" [ -z "$noTime" ] && timeSub="&& sub (/^\[[0-9]{10}]/, strftime (\"%Y-%m-%d %H:%M:%S\", substr (\$1, 2, 10)), \$1)"
awkString="/^\[[0-9]{10}] (GLOBAL |CURRENT )?$aSource (DOWNTIME |FLAPPING )?$aType: .*$host.*$service/" awkString="/^\[[0-9]{10}] (GLOBAL |CURRENT )?$aSource[^ ]* (DOWNTIME |FLAPPING )?$aType[^:]*: .*$host.*$service/"
[ -n "$raw" ] && awkString="/./" [ -n "$raw" ] && awkString="/./"
do_debug "host=$host" do_debug "host=$host"
do_debug "service=$service" do_debug "service=$service"