Open davidpellcb opened 4 months ago
That's true, we could add this. Typically we recommend users configure Vector to log as JSON if they want to process the logs though, by setting the environment variable VECTOR_LOG_FORMAT=json
.
VECTOR_LOG_FORMAT=json
TIL, doh, sorry for missing that. Thanks so much! I will plan to use that and we could probably close this unless you think there's any use in being able to parse the non-JSON logs.
I think it's a reasonable enough request, though probably low-priority given the ability to emit structured JSON events.
I'm looking for a way to parse the logs emitted by Vector itself. AFAICT there isn't a
parse_*
function for this.Example log:
Is there a recommended approach for parsing Vector's logs? Just
parse_grok
orparse_regex
? Seems like this may be hard to do. Compare this other WARN log: