by shigemk2

当面は技術的なことしか書かない

FluentBit rewrite

KEEPで元のレコードを保持するか破棄するか決める。

$KEY  REGEX  NEW_TAG  KEEP

If a rule matches a rule the filter will emit a copy of the record with the new defined Tag. The property keep takes a boolean value to define if the original record with the old Tag must be preserved and continue in the pipeline or just be discarded.

docs.fluentbit.io

ちなみに、Matchの書き方は素のワイルドカードが使えないようになっているらしく、 * を書くとFluentBitの起動が失敗する。

github.com