Skip to content

How can I use fluentd log collection on Bottlerocket? #1436

Answered by derekwlmscfa
derekwlmscfa asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the suggestions, @backjo and others! I was able to get good results with fluentd using:

  • The cri parser, when using only Bottlerocket nodes (containerd runtime only), with source containing:
        <parse>
          @type cri
        </parse>
        <parse>
          @type multi_format
          <pattern>
            format json
            time_format %Y-%m-%dT%H:%M:%S.%NZ
          </pattern>
          <pattern>
            format regexp
            expression /^(?<timestamp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z) (?<output>\w+) (?<partial_flag>[FP]) (?<message>.+)$/
         …

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jhaynes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1378 on April 01, 2021 17:29.