You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The provided instructions to create a parser for the cri logs results in the creation of a duplicate parser.
Since 1.0, the fluent-bit docker image has included a built-in list of parsers, one of which is the default cri parser.
Attempting to create another parser with the same name as described here results in an error at start-up:
[error] [parser] parser named 'cri' already exists, skip.
This built-in cri parser emits the main contents of the log under the message field, not the log field, which is contradictory to many of the statements provided.
Expected Behavior
The creation of a parser does not generate errors within fluent-bit.
The logs are emitted under the log key, as described.
On start-up the pod should emit a log: [error] [parser] parser named 'cri' already exists, skip.
The logs output by fluent-bit will have the main contents emitted under message instead of `log.
Additional Context
Recommend that the name of the parser specified in this documentation is changed to something like cri-log, as well as the value for Parser under [INPUT].
The text was updated successfully, but these errors were encountered:
JFYI, the native cri parser stores de raw json app message in the 'message' field, while this repo custom parser stores a cri log format in the 'log' field. Even by using this custom parser, the Merge_Log directive is not working as expected, because the log message is not valid json (it's actually cri with json).
As a workaround I used the native cri parser, deleted the custom parser and added a filter to rename the the field 'message' to 'log'.
[FILTER]
Name modify
Match kube.*
Rename message log
Bug Report
Description
The provided instructions to create a parser for the
cri
logs results in the creation of a duplicate parser.Since
1.0
, the fluent-bit docker image has included a built-in list of parsers, one of which is the defaultcri
parser.Attempting to create another parser with the same name as described here results in an error at start-up:
This built-in
cri
parser emits the main contents of the log under themessage
field, not thelog
field, which is contradictory to many of the statements provided.Expected Behavior
The creation of a parser does not generate errors within
fluent-bit
.The logs are emitted under the
log
key, as described.Reproduce
config.yaml
and configure a pod running thefluent-bit
docker image with a version greater than1.0
.[error] [parser] parser named 'cri' already exists, skip.
fluent-bit
will have the main contents emitted undermessage
instead of `log.Additional Context
Recommend that the name of the parser specified in this documentation is changed to something like
cri-log
, as well as the value forParser
under[INPUT]
.The text was updated successfully, but these errors were encountered: