Normalize alert msg
[khatus.git] / src / awk / exe / monitor_errors.awk
CommitLineData
03c229bf
SK
1/^ERROR/ {
2 src = $2
3 # Not just using $3 for body - because body might contain a character
4 # identical to FS
5 len_line = length($0)
6 len_head = length($1 FS $2 FS)
7 len_body = len_line - len_head
8 body = substr($0, len_head + 1, len_body)
e103315c 9 msg_out_ok_alert("hi", "ERROR_IN_" src, body)
03c229bf 10}
This page took 0.018109 seconds and 4 git commands to generate.