This repo is deprecated. Please use fluent-plugins-nursery/fluent-plugin-out-http
fluent-plugin-out-http-ext, a plugin for Fluentd
This is a fork of ento / fluent-plugin-out-http
A generic fluentd output plugin for sending logs to an HTTP endpoint
<match *>
type http_ext
endpoint_url https://localhost.local/api/<data.id> # <data.id> refres to data.id in the record like {"data"=> {"id"=> 1, "name"=> "foo"}}
http_method put # default: post
serializer json # default: form
rate_limit_msec 100 # default: 0 = no rate limiting
open_timeout 5 # default: nil = no timeout
read_timeout 10 # default: 60
raise_on_error false # default: true
raise_on_http_failure true # default: false
ignore_http_status_code 300,400..499 # default: nil # do not raise on these http_status codes
authentication basic # default: none
username alice # default: ''
password bobpop # default: '', secret: true
use_ssl true # default: false
verify_ssl false # default: true
format <formatter> # default: '', <formatter> is the name of your formatter plugin
<headers>
HeaderExample1 header1
HeaderExample2 header2
</headers>
</match>
If you'd like to retry failed requests, consider using fluent-plugin-bufferize.
Include these changes to pull request
- update
CHANGELOG.md
- update
README.md
After master is updated
# bump `gem.version` in `fluent-plugin-out-http-ext.gemspec`
# upload to rubygems
$ bundle exec rake release
Heavily based on fluent-plugin-growthforecast