Fluent-bit: Parser: invalid time format error when comma appears in format string

Created on 1 Mar 2018  路  4Comments  路  Source: fluent/fluent-bit

fluent-bit version: 0.12.14

We are trying to parse timestamps with the following format in a tail input:

2018-03-01 17:46:03,781

We are using a parser time format defined as follows:

Time_Format %Y-%m-%d %H:%M:%S,%L

This results in the following error on startup:

[error] [parser:foo] Invalid time format %Y-%m-%d %H:%M:%S,%L.

And of course we do not get the timestamp in the output record. If I remove the ",%L" from the format string the error disappears, but obviously the format no longer matches.

I have tried quoting the format string, but that did not resolve the issue. Also note that we successfully used this same format string in custom confs for google-fluentd to log to stackdriver.

enhancement

Most helpful comment

"comma" for now is not supported, only a dot. I will make sure to fix it.

All 4 comments

Also note that I tried this on 0.13-dev-0.8 with the same result.

Tried on 0.13.0 with the same result

"comma" for now is not supported, only a dot. I will make sure to fix it.

I ran into the same issue with ":" Should support comma, space, dash, colon and dot at a minimum, yes?

Was this page helpful?
0 / 5 - 0 ratings