Skip to content

Commit

Permalink
kubernetes(): truncate the terminating NL character from the message
Browse files Browse the repository at this point in the history
Signed-off-by: Balazs Scheidler <[email protected]>
  • Loading branch information
bazsi committed Feb 10, 2024
1 parent afe35d7 commit 9c382ae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ block parser kubernetes-json-file-parser(prefix('.k8s.') cluster-name('k8s') key
json-parser(internal(yes) prefix(`prefix`));
channel {
rewrite {
set("${`prefix`log}" value(MESSAGE) internal(yes));
# chomp the final newline
set("$(substr ${`prefix`log} 0 -1)" value(MESSAGE) internal(yes));
};
};
date-parser(internal(yes) format("%FT%H:%M:%S.%f%Z") template("${`prefix`time}"));
Expand Down

0 comments on commit 9c382ae

Please sign in to comment.