Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

A generic fluentd output plugin for sending logs to an HTTP endpoint. (deprecated)

License

Notifications You must be signed in to change notification settings

toshitanian/fluent-plugin-out-http-ext

 
 

Repository files navigation

This repo is deprecated. Please use fluent-plugins-nursery/fluent-plugin-out-http

fluent-plugin-out-http-ext, a plugin for Fluentd

Build Status Coverage Status

This is a fork of ento / fluent-plugin-out-http

A generic fluentd output plugin for sending logs to an HTTP endpoint

Configuration options

<match *>
  type http_ext
  endpoint_url          http://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>

Usage notes

If you'd like to retry failed requests, consider using fluent-plugin-bufferize.

how to release

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

About

A generic fluentd output plugin for sending logs to an HTTP endpoint. (deprecated)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%