Hi users!
We have released v1.4.0. ChangeLog is here. This release includes nice features and improvements.
<worker N-M>
syntaxThis feature enables grouping workers. Here is configuration example:
<system>
workers 5
</system>
<worker 0-1>
<source>
@type forward
</source>
<match test.**>
@type stdout
</match>
</worker>
<worker 2-4>
<source>
@type tcp
<parse>
@type json
</parse>
tag test
</source>
<match test>
@type stdout
</match>
</worker>
With this configuration, worker 0
/1
launches forward
input with 24224
port and
worker 2
/3
/4
launches tcp
input with 5170
port.
symlink_path
parametersThis change improves symlink_path
usecase. You can tail multiple files based on placeholders.
Here is a configuration and result example:
# config
<source>
@type dummy
tag dummy1
</source>
<source>
@type dummy
tag dummy2
</source>
<match dummy*>
@type file
path /tmp/logs/${tag}
symlink_path /tmp/logs/current-${tag}
<buffer tag,time>
@type file
</buffer>
</match>
# result
$ tree /tmp/logs/
/tmp/logs/
├── ${tag}
│ ├── buffer.b57fb1dd96306dd0b308e094f7ec2228f.log
│ ├── buffer.b57fb1dd96306dd0b308e094f7ec2228f.log.meta
│ ├── buffer.b57fb1dd96339a870530991d4871cfe11.log
│ └── buffer.b57fb1dd96339a870530991d4871cfe11.log.meta
├── current-dummy1 -> /tmp/logs/${tag}/buffer.b57fb1dd96339a870530991d4871cfe11.log
└── current-dummy2 -> /tmp/logs/${tag}/buffer.b57fb1dd96306dd0b308e094f7ec2228f.log
You can use "#{ruby code}"
syntax in <filter>
/<match>
argument.
Let's see configuration example:
<match "app.#{ENV['FLUENTD_TAG']}">
@type stdout
</match>
If you set dev
to FLUENTD_TAG
environment variable, this config becomes <match app.dev>
.
Enjoy logging!
Subscribed to the RSS feed here.
Masahiro (@repeatedly) is the main maintainer of Fluentd. He works on Fluentd development and support full-time. He is also a committer of the D programming language.
Fluentd is an open source data collector to unify log management.
2023-08-29: Drop schedule announcement about EOL of Treasure Agent (td-agent) 4
2023-08-29: Scheduled support lifecycle announcement about Fluent Package
2023-07-31: Upgrade to fluent-package v5
2023-05-08: td-agent v4.5.0 has been released
2023-04-20: Fluentd v1.16.1 has been released
2023-03-29: Fluentd v1.16.0 has been released
2022-11-11: Fluentd v1.15.3 has been released
2022-11-08: td-agent v4.4.2 has been released
2022-08-23: td-agent v4.4.1 has been released
2022-08-22: Fluentd v1.15.2 has been released
Want to learn the basics of Fluentd? Check out these pages.
Couldn't find enough information? Let's ask the community!
You need commercial-grade support from Fluentd committers and experts?
©2010-2023 Fluentd Project. ALL Rights Reserved.
Fluentd is a hosted project under the Cloud Native Computing Foundation (CNCF). All components are available under the Apache 2 License.