Hi users!
We have released Fluentd version 0.12.16. Here are the changes:
null_value_pattern
and null_empty_string
option for ltsv, csv and tsv #657/api/config.dump
and /api/config.getDump
APIs to dump in memory config #666--show-plugin-config
option #663add_remote_addr
and add_http_headers
options not working on bulk request #673RegexpParser#initialize
should wrap only Hash configuration #647null_value_pattern
and null_empty_string
for ltsv, csv and tsv parsersIn some real cases, TSV families have original null value pattern, e.g. -
, null
, NULL
.
Fluentd parses NULL
as a string but users want to treat these values as nil
.
null_value_pattern
is useful for such cases.
<source>
type tail
path /var/log/httpd/access_log
format ltsv
null_value_pattern ^(-|null|NULL)$
# other parameters
</source>
By this configuration, if your logs have -
, null
or NULL
, parser converts it to nil
.
In addition, if you want to treat empty string as nil
, use null_empty_string
instead.
/api/config.dump
and /api/config.getDump
These RPCs dump in-memory configuration to fluentd's log or RPC response. This is useful for checking running fluentd is old or not.
Here is a configuration example:
<system>
rpc_endpoint localhost:24220
</system>
<source>
type forward
</source>
<match **>
type stdout
</match>
Call /api/config.dump
and get current configuration in fluentd logs.
% curl http://localhost:24220/api/config.dump
{"ok":true}
Your log has following lines
2015-09-30 19:37:51 +0900 [info]: dump in-memory config
2015-09-30 19:37:51 +0900 [info]: <ROOT>
<system>
rpc_endpoint localhost:24220
</system>
<source>
type forward
</source>
<match **>
type stdout
</match>
</ROOT>
If you set enable_get_dump
in <system>
section, you can use /api/config.getDump
to get configuration from RPC response.
This is turn off by default for security concern.
master branch becomes a development branch for v0.14 and we created v0.12 branch for maintaining v0.12 seriese. If you have v0.12 specific patch, send it to v0.12 branch instead of master. We have a plan to merge following features soon:
If we have a time, following feature may merge.
After that, we will release alpha version of v0.14 :)
Happy 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-11-08: fluent-package v5.0.5 has been released
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
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.