Added wildcards to nlog

dev
Eric Loyd 9 months ago
parent 73eafb12c8
commit 10dd1f193d

@ -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"

Loading…
Cancel
Save