FluentBit Convert message to seperate fields #9458
Replies: 2 comments 9 replies
-
Simplify first, I think it is being parsed correctly but it may be the gelf output confusing things. What does it look like with stdout output? Your parser definition does not look right either: |
Beta Was this translation helpful? Give feedback.
-
Yesterday I removed the fluentbit config and started with an empty config. I moved the parser reference to the [INPUTS] part and everything is working as expected. |
Beta Was this translation helpful? Give feedback.
-
I'm struggling to convert a json message into seperate fields.
The logfile contains the lines below:
{"level":"info","msg":"config storage: postgres","time":"2024-10-02T09:00:57Z"}
{"level":"info","msg":"config static client: Argo Continuous Delivery","time":"2024-10-02T09:00:57Z"}
{"level":"info","msg":"config refresh tokens rotation enabled: true","time":"2024-10-02T09:00:57Z"}
{"level":"info","msg":"listening (http) on 0.0.0.0:8080","time":"2024-10-02T09:00:57Z"}
FluentBit configuration:
[INPUTS]
[FILTERS]
[PARSER]
[OUTPUTS]
The graylog server received the message and shows it as below:
I tried regex and nest/lift to convert the json message to seperate fields but without success, I need seperate field so I'm able to filter on severity level using graylog.
Is there a way to convert the json message received from the /output/logs/*.log to seperate fields?
Beta Was this translation helpful? Give feedback.
All reactions