Fluentd
0.12
0.12
  • Introduction
  • Overview
    • Getting Started
    • Installation
    • Life of a Fluentd event
    • Support
    • FAQ
  • Use Cases
    • Centralized App Logging
    • Monitoring Service Logs
    • Data Analytics
    • Connecting to Data Storages
    • Stream Processing
    • Windows Event Collection
    • IoT Data Logger
  • Configuration
    • Config File Syntax
    • Routing Examples
    • Recipes
  • Deployment
    • Logging
    • Monitoring
    • Signals
    • RPC
    • High Availability Config
    • Failure Scenarios
    • Performance Tuning
    • Plugin Management
    • Trouble Shooting
    • Secure Forwarding
    • Fluentd UI
    • Command Line Option
  • Container Deployment
    • Docker Image
    • Docker Logging Driver
    • Docker Compose
    • Kubernetes
  • Input Plugins
    • tail
    • forward
    • secure_forward
    • udp
    • tcp
    • http
    • unix
    • syslog
    • exec
    • scribe
    • multiprocess
    • dummy
    • Others
  • Output Plugins
    • file
    • s3
    • kafka
    • forward
    • secure_forward
    • exec
    • exec_filter
    • copy
    • geoip
    • roundrobin
    • stdout
    • null
    • webhdfs
    • splunk
    • mongo
    • mongo_replset
    • relabel
    • rewrite_tag_filter
    • Others
  • Buffer Plugins
    • memory
    • file
  • Filter Plugins
    • record_transformer
    • grep
    • parser
    • stdout
  • Parser Plugins
    • regexp
    • apache2
    • apache_error
    • nginx
    • syslog
    • ltsv
    • csv
    • tsv
    • json
    • multiline
    • none
  • Formatter Plugins
    • out_file
    • json
    • ltsv
    • csv
    • msgpack
    • hash
    • single_value
  • Developer
    • Plugin Development
    • Community
    • Mailing List
    • Source Code
    • Bug Tracking
    • ChangeLog
    • Logo
  • Articles
    • Store Apache Logs into MongoDB
    • Apache To Riak
    • Store Apache Logs into Amazon S3
    • Before Install
    • Cep Norikra
    • Collect Glusterfs Logs
    • Common Log Formats
    • Docker Logging Efk Compose
    • Docker Logging
    • Filter Modify Apache
    • Forwarding Over Ssl
    • Free Alternative To Splunk By Fluentd
    • Data Collection to Hadoop (HDFS)
    • Data Analytics with Treasure Data
    • Install By Chef
    • Install By Deb
    • Install By Dmg
    • Install By Gem
    • Install By Rpm
    • Install From Source
    • Install On Beanstalk
    • Install On Heroku
    • Java
    • Kinesis Stream
    • Kubernetes Fluentd
    • Monitoring by Prometheus
    • Monitoring by Rest Api
    • Nodejs
    • Performance Tuning Multi Process
    • Performance Tuning Single Process
    • Perl
    • Php
    • Python
    • Quickstart
    • Raspberrypi Cloud Data Logger
    • Recipe Apache Logs To Elasticsearch
    • Recipe Apache Logs To Mongo
    • Recipe Apache Logs To S3
    • Recipe Apache Logs To Treasure Data
    • Recipe Cloudstack To Mongodb
    • Recipe Csv To Elasticsearch
    • Recipe Csv To Mongo
    • Recipe Csv To S3
    • Recipe Csv To Treasure Data
    • Recipe Http Rest Api To Elasticsearch
    • Recipe Http Rest Api To Mongo
    • Recipe Http Rest Api To S3
    • Recipe Http Rest Api To Treasure Data
    • Recipe Json To Elasticsearch
    • Recipe Json To Mongo
    • Recipe Json To S3
    • Recipe Json To Treasure Data
    • Recipe Nginx To Elasticsearch
    • Recipe Nginx To Mongo
    • Recipe Nginx To S3
    • Recipe Nginx To Treasure Data
    • Recipe Syslog To Elasticsearch
    • Recipe Syslog To Mongo
    • Recipe Syslog To S3
    • Recipe Syslog To Treasure Data
    • Recipe Tsv To Elasticsearch
    • Recipe Tsv To Mongo
    • Recipe Tsv To S3
    • Recipe Tsv To Treasure Data
    • Ruby
    • Scala
    • Splunk Like Grep And Alert Email
Powered by GitBook
On this page
  • What version of Ruby does fluentd support?
  • Known Issue
  • I use Fluentd with Ruby 2.0 but Fluentd seems deadlocked. Why?
  • Operations
  • I have millisecond timestamp log but fluentd drops subsecond. Why?
  • I have a weird timestamp value, what happened?
  • I installed td-agent and want to add custom plugins. How do I do it?
  • I installed the plugin and it updates fluentd from v0.12 to v1.x. Why?
  • How can I match (send) an event to multiple outputs?
  • How can I use environment variables to configure parameters dynamically?
  • Fluentd raises an error for host:port. Why?
  • I got "no patterns matched" in the log, why?
  • File buffer doesn't work properly, why?
  • I got enconding error inside plugin. How to fix it?
  • Plugin Development
  • How do I develop a custom plugin?
  • HOWTOs
  • How can I parse <my complex text log>?

Was this helpful?

  1. Overview

FAQ

PreviousSupportNextUse Cases

Last updated 4 years ago

Was this helpful?

What version of Ruby does fluentd support?

Fluentd v0.12 works on 1.9.3 or later. Since v1.x, 2.1 or later.

Known Issue

I use Fluentd with Ruby 2.0 but Fluentd seems deadlocked. Why?

The rubygems of Ruby 2.0-p353 has a deadlock problem (). If you use Ruby 2.0-p353, upgrading Ruby to latest patch level or Ruby 2.1 resolve this problem.

Please make sure that you are using either RHEL 7.1 and ruby-2.0.0.598-25.el7_1 package or alternatively you can choose more recent Ruby provided by Red Hat Software Collections ()

Unfortunately, Ruby 2.0 package of Ubuntu 14.04 use Ruby 2.0-p353. So don't use Fluentd with Ruby 2.0 package on this environment. You can install specified Ruby version using .

Using td-agent is another way to avoid this problem because td-agent includes own Ruby.

Operations

I have millisecond timestamp log but fluentd drops subsecond. Why?

In v0.12 or earlier, fluentd's event time is second unit. It means fluentd converts millisecond/nanosecond timestamp into second timestamp.

Since v1.x, event tims has nanosecond resolution, so fluentd can handle millisecond/nanosecond timestamp properly.

Visit

I have a weird timestamp value, what happened?

The timestamps of Fluentd and its logger libraries depend on your system's clock. It's highly recommended that you set up NTP on your nodes so that your clocks remain synced with the correct clocks.

I installed td-agent and want to add custom plugins. How do I do it?

td-agent has own Ruby so you should install gems into td-agent's Ruby, not system Ruby.

td-agent:

Please use td-agent-gem as shown below.

$ /usr/sbin/td-agent-gem install <plugin name>

For example, issue the following command if you are adding fluent-plugin-twitter.

$ /usr/sbin/td-agent-gem install fluent-plugin-twitter

Now you might be wondering, "Why do I need to specify the full path?" The reason is that td-agent does not modify any host environment variable, including PATH. If you want to make all td-agent/fluentd related programs available without writing "/usr/lib/..." every time, you can add

export PATH=$PATH:/opt/td-agent/embedded/bin/

to your ~/.bash_profile.

I installed the plugin and it updates fluentd from v0.12 to v1.x. Why?

How can I match (send) an event to multiple outputs?

How can I use environment variables to configure parameters dynamically?

Use "#{ENV['YOUR_ENV_VARIABLE']}". For example,

some_field "#{ENV['FOO_HOME']}"

Note that it must be double quotes and not single quotes

Fluentd raises an error for host:port. Why?

There are several reasons:

  • If you get Address already in use error, other process has already

    used host:port. Check port conflict between processes / plugins.

  • If you get Permission denied error, you try to use well-known

    port. Search well-known port for how to use well-known port. Use

    capabilities or something

If you get other errors, google it.

I got "no patterns matched" in the log, why?

This means you emit the event but no <match> directive for emitted event. For example, if you emit the event with foo.bar tag, you need to define <match> for foo.bar tag like <match foo.**>.

File buffer doesn't work properly, why?

I got enconding error inside plugin. How to fix it?

You may hit "\xC3" from ASCII-8BIT to UTF-8" like UndefinedConversionError in the plugin. This error happens when string encoding is set to ASCII-8BIT but actual content is UTF-8. Fluentd and almost plugins treat the logs as a ASCII-8BIT by default but some libraries assume the log encoding is UTF-8. This is why this error happens.

There are several approaches to avoid this problem.

  • Set encoding correctly.

    • tail input has encoding related parameters to change the log

      encoding

    • Use record_modifier filter to change the encoding. See

      [fluent-plugin-record-modifier

  • Use yajl instead of json when error happens inside

    JSON.parse/JSON.dump

Plugin Development

How do I develop a custom plugin?

HOWTOs

How can I parse <my complex text log>?

If you would like to find out more about plugin management, please take a look at the article.

You installed v1.0 based plugin. See .

You can use the copy to send the same event to multiple output destinations.

See also: or

file buffer has limitations. Check .

README]()

Please refer to the .

If you are willing to write Regexp, or is a great tool to verify your Regexps.

If you do NOT want to write any Regexp, look at .

If this article is incorrect or outdated, or omits critical information, please . is a open source project under . All components are available under the Apache 2 License.

#9224
https://access.redhat.com/documentation/en/red-hat-software-collections/
rbenv
v1.x document
Plugin Management
output plugin
Life of a Fluentd event
Config File
buf_file article
https://github.com/repeatedly/fluent-plugin-record-modifier#char_encoding
Plugin Development Guide
fluentd-ui's in_tail editor
Fluentular
the Grok parser
let us know
Fluentd
Cloud Native Computing Foundation (CNCF)
Plugin Management