log_json prepends logs with whitespace #9489
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/logging
type/bug
Milestone
Nomad version
Nomad v0.12.5+ent
Operating system and Environment details
Debian Buster
Issue
When enabling
log_json = true
in the server or client configs, it looks like the log output has a number of spaces at the beginning.This requires extra config on our log ingester (logstash) in order to parse the JSON, as it assumes a JSON log begins with "{". Not a huge issue, but I can't think of a reason why one would ever want extra whitespace in a JSON-formatted log
The text was updated successfully, but these errors were encountered: