Ask Your Question
2

What is the method to eliminate the tail and timestamp from the output of fluentbit's stdout?

asked 2021-05-31 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-05-16 00:00:00 +0000

bukephalos gravatar image

To eliminate the tail and timestamp from the output of Fluent Bit's stdout, you can use the stdout_format configuration option with the json format and remove the time_key and time_format settings. Here is an example configuration:

[SERVICE]
    ...
[INPUT]
    ...
[OUTPUT]
    Name stdout
    Match *
    Format json
    stdout_format json_lines

This configuration will output logs in JSON format without any additional information like the tail and timestamp.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-31 11:00:00 +0000

Seen: 11 times

Last updated: May 16 '21