Repository is archived
No commit activity in last 3 years
No release in over 3 years
A buffered HTTP batching output for Fluentd
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 10.0

Runtime

< 2, >= 0.14.0
< 3.0.0, >= 2.0.0
 Project Readme

Fluent::Plugin::HttpForward

This gem provides a buffered HTTP output plugin for Fluentd which also optionally supports authentication.

Requirements

  • Fluetnd v0.14+

Installation

gem 'fluent-plugin-http_forward'

Configuration Options

<match **>
  @type http_forward
  url   http://remote.example.com/%{tag}
  verb  post
  content_type  application/json # optional override
  <authentication>
    method    basic
    username  user
    password  pass
  </authentication>
  <format>
    @type json
  </format>
  <buffer tag>                  # if buffering, specify tag for in_http compat
    chunk_limit_size 8388608    # optional, maximum chunk size, default 8MB
    total_limit_size 536760912  # optional, maximum buffer size, default 512M
    chunk_records_limit 10      # optional, maximum records per chunk
    flush_interval 60           # optional, maximum time between flush
    flush_thread_count 1        # optional, async threads to flush buffer
  </buffer>

Status

At present, only the JSON format has been tested. There's an optional msgpack format available that is as of yet untested because in_http does not currently support it.