A basic boilerplate repo to expedite Fluentd usage. It allows contains some simple configuration options and testing steps to familiarize yourself with the application.
make image
docker run -it -p 24224:24224 custom-fluentd-1.11:latest
- Install Ruby > 2.5
- Bundler
gem install bundler
bundle install
- Run Fluentd
fluentd -c <config_file>(conf/fluent.conf) -p <plugin_directory> -vv
Test payload conf file: docker run -it -p 24224:24224 -e FLUENTD_CONF=fluent-payload.conf custom-fluentd-1.11:latest
echo '{"event":{"hostname":"macOS","level":30,"msg":"This is a test","stream":"stdout"}, "payload":"{\"hello\": \"world\"}"}' | fluent-cat docker.test
Causes ArgumentError due to missing payment
key
echo '{"event":{"hostname":"macOS","level":30,"msg":"This is a test","stream":"stdout"}' | fluent-cat docker.test
Test anonymizer conf file: docker run -it -p 24224:24224 -e FLUENTD_CONF=fluent-anonymizer.conf custom-fluentd-1.11:latest