You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[PARSER]
Name demo_json
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%LZ
fluent-bit.conf
[SERVICE]
log_level debug
Parsers_File /fluent-bit/etc/conf/custom_parsers.conf
[INPUT]
Name dummy
Tag dummy.data
Dummy {"key1": 12345, "key2": "abc", "time": "2006-07-28T13:22:04.145Z"}
[FILTER]
Name nest
Match *
Operation nest
Wildcard *
Nest_under data
[FILTER]
Name parser
Match dummy.*
Key_Name data
Parser demo_json
[OUTPUT]
Name stdout
Match *
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm not sure why it doesn't work...
docker-compose.yaml
custom_parsers.conf
fluent-bit.conf
Result:
in the output does not match timestamp with time value
1702794820.157338344 === 2023-12-17T06:33:40.157338344Z
please someone can share me a working example that uses JSON and Time_Key or at least tell me what I'm doing wrong :/
Beta Was this translation helpful? Give feedback.
All reactions