Fluent codec plugin

edit
  • Plugin version: v3.3.0
  • Released on: 2019-11-08
  • Changelog

For other versions, see the Versioned plugin docs.

Installation

edit

For plugins not bundled by default, it is easy to install by running bin/logstash-plugin install logstash-codec-fluent. See Working with plugins for more details.

Getting Help

edit

For questions about the plugin, open a topic in the Discuss forums. For bugs or feature requests, open an issue in Github. For the list of Elastic supported plugins, please consult the Elastic Support Matrix.

Description

edit

This codec handles fluentd’s msgpack schema.

For example, you can receive logs from fluent-logger-ruby with:

    input {
      tcp {
        codec => fluent
        port => 4000
      }
    }

And from your ruby code in your own application:

    logger = Fluent::Logger::FluentLogger.new(nil, :host => "example.log", :port => 4000)
    logger.post("some_tag", { "your" => "data", "here" => "yay!" })

Notes:

  • the fluent uses a second-precision time for events, so you will never see subsecond precision on events processed by this codec.