Skip to content

Commit

Permalink
Fix awk script parsing of ERRORLOG for last entry UniqeID
Browse files Browse the repository at this point in the history
  • Loading branch information
martini-source committed Sep 17, 2024
1 parent d9d60df commit 9758e00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transform-alert-message.awk
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ BEGIN {
# tag
case "hostname": Hostname = substr($i, 2, length($i) - 3); FN = ""; break
case "uri": Uri = substr($i, 2, length($i) - 3); FN = ""; break
case "unique_id": UniqueID = substr($i, 2, length($i) - 3); FN = ""; break
# This needs to remove 1 char more since it's the last entry and ends in "], instead of "]
case "unique_id": UniqueID = substr($i, 2, length($i) - 4); FN = ""; break
case "msg":
if ( substr($i, 1, 1) == "\"" ) {
Msg = substr($i, 2, length($i) - 1)
Expand Down

0 comments on commit 9758e00

Please sign in to comment.