Open6

Fluentbitでのメッセージを複数のストリームに分割する

dehio3dehio3
[SERVICE]
    Flush 1
    Log_Level info

[INPUT]
    Name   dummy
    Dummy {"message": "custom dummy"}

[OUTPUT]
    Name   stdout
    Match  *
[0] dummy.0: [1712308766.990216601, {"message"=>"custom dummy"}]
[0] dummy.0: [1712308767.990075015, {"message"=>"custom dummy"}]
[0] dummy.0: [1712308768.990386055, {"message"=>"custom dummy"}]
dehio3dehio3

INPUTにTagを追加

[SERVICE]
    Flush 1
    Log_Level info

[INPUT]
    Name   dummy
    Dummy {"message": "custom dummy"}
    Tag    test

[OUTPUT]
    Name   stdout
    Match  *
[0] test: [1712309324.057924385, {"message"=>"custom dummy"}]
[0] test: [1712309325.057609645, {"message"=>"custom dummy"}]
[0] test: [1712309326.057677377, {"message"=>"custom dummy"}]
dehio3dehio3

OUTPUT Formatをjson

[SERVICE]
    Flush 1
    Log_Level info

[INPUT]
    Name   dummy
    Dummy {"message": "custom dummy"}
    Tag    test

[OUTPUT]
    Name   stdout
    Match  *
    Format json
[{"date":1712309774.063992,"message":"custom dummy"}]
[{"date":1712309775.064214,"message":"custom dummy"}]
[{"date":1712309776.064248,"message":"custom dummy"}]