How to index json output data from docker containers into elastic search #4389
Unanswered
zerodefect
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a set of docker containers running in a local stack (via docker-compose) that are outputting JSON logs that look like the following:
{"app_name":"SampleApp","app_port":6666,"app_version":"0.0.2","file":"/build/examples/sample/app/runmain/main.go:131","func":"example.com/code/microservices/examples/sample/app/runmain.mainErr.func1","fw_version":"v0.0.1","level":"info","msg":"listening","time":"2024-01-18T20:31:39.163970213+07:00"}
This is a custom JSON output format.
The fluentd log shows the log it receives:
The corresponding fluentd conf is the following:
The problems I'm trying to resolve:
Any tips would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions