Movatterモバイル変換


[0]ホーム

URL:


Loading

Fluent codec plugin

For other versions, see theVersioned plugin docs.

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

This codec handles fluentd’s msgpack schema.

For example, you can receive logs fromfluent-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!" })
Note

Fluent uses second-precision for events, so you will not see sub-second precision on events processed by this codec.

SettingInput typeRequired
nanosecond_precisionbooleanNo
targetstringNo

  • Value type isboolean
  • Default value isfalse

Enables sub-second level precision while encoding events.

  • Value type isstring
  • There is no default value for this setting.

Define the target field for placing the decoded values. If this setting is not set, data will be stored at the root (top level) of the event.

For example, if you want data to be put under thelogs field:

input {  tcp {    codec => fluent {      target => "[logs]"    }    port => 4000  }}

Welcome to the docs for thelatest Elastic product versions, including Elastic Stack 9.0 and Elastic Cloud Serverless.To view previous versions, go toelastic.co/guide.


[8]ページ先頭

©2009-2025 Movatter.jp