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.
2024-08-29: Scheduled support lifecycle announcement about Fluent Package v6
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
2024-08-29: Scheduled support lifecycle announcement about Fluent Package v6
2024-08-20: Fluentd v1.16.6 has been released
2024-08-19: Fluentd v1.17.1 has been released
2024-08-02: fluent-package v5.1.0 has been released
2024-07-02: fluent-package v5.0.4 has been released
2024-04-30: Fluentd v1.17.0 has been released
2024-03-29: fluent-package v5.0.3 has been released
2024-03-27: Fluentd v1.16.5 has been released
2024-03-14: Fluentd v1.16.4 has been released
2023-12-04: Open Source Summit Japan 2023
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-2024 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.