Skip to content

ogibayashi/fluent-plugin-out-http-buffered

 
 

Repository files navigation

This is an output plugin for (Fluentd) which deliveres buffered log messages to an http endpoint.

It has configurable (read) and (open) timeouts.

Clients can also configure which http response statuses should be retried (in most cases clients would want to retry on status 500).

All messages are sent through POST in json format.

The plugin was influenced by the standard (http output plugin).

Installation:

‘gem install fluent-out-http-buffered`

Usage:

# Configuration file fluent.conf
<match fluentd.test.*>
  type http_buffered
  flush_interval 2s
  #Endpoint for messages
  endpoint_url    http://localhost/fluent.php
  #Comma separated list of http statuses which need to be retried
  http_retry_statuses 500, 403
  #Read timeout in seconds, supports floats
  http_read_timeout 2.2
  #Open timeout in seconds, supports floats
  http_open_timeout 2.34
  # serializer. 'json' and 'msgpack' are supported
  serializer msgpack
  # settings from SetTagKeyMixin and SetTimeKeyMixin
  include_tag_key true
  include_time_key true
  time_format %s
  # Whether to include tag and time record
  output_include_tag false
  output_include_time false
  # Retry in case of connect error.(default: false)
  retry_on_connect_error true
  # Additional header (default: nil). It might be useful to use this with out_forest to include tag/hostname as header.
  additional_headers X-custom-header1=foo,X-custom-header2=bar   
</match>

Copyright © 2013 ablagoev. See LICENSE.txt for further details.

About

Send fluent buffered logs to an http endpoint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%