Skip to content

Commit 9758e00

Browse files
Fix awk script parsing of ERRORLOG for last entry UniqeID
1 parent d9d60df commit 9758e00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

transform-alert-message.awk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ BEGIN {
107107
# tag
108108
case "hostname": Hostname = substr($i, 2, length($i) - 3); FN = ""; break
109109
case "uri": Uri = substr($i, 2, length($i) - 3); FN = ""; break
110-
case "unique_id": UniqueID = substr($i, 2, length($i) - 3); FN = ""; break
110+
# This needs to remove 1 char more since it's the last entry and ends in "], instead of "]
111+
case "unique_id": UniqueID = substr($i, 2, length($i) - 4); FN = ""; break
111112
case "msg":
112113
if ( substr($i, 1, 1) == "\"" ) {
113114
Msg = substr($i, 2, length($i) - 1)

0 commit comments

Comments
 (0)