Closed renegaderyu closed 2 years ago
I think I might have found the problem. Closing as PICNIC/RTFM
NOTE: If you want to enable json_parser oj by default, The oj gem must be installed separately. This is because oj gem is not required from fluentd by default. If oj gem is not installed, yajl is used as a fallback.
Problem
I was hoping to test/enable the oj serializer for better performance; however fluentd refuses to start when I set
prefer_oj_serializer true
using this plugin. This does not happen with the base plugin, uken/fluent-plugin-elasticsearch.Steps to replicate
docker build -t fluentd:test .
docker run --rm -v $(pwd)/test.conf:/etc/fluent/fluent.conf -it fluentd:test -c /etc/fluent/fluent.conf --dry-run
prefer_oj_serializer false
dry run is successful, withprefer_oj_serializer true
dry run dumps the traceback below.traceback
Dockerfile
test.conf
Expected Behavior or What you need to ask
Can you help me understand...
Using Fluentd and ES plugin versions