Fluentd
Links
- about config file: https://docs.fluentd.org/configuration/config-file
- about timekey: https://docs.fluentd.org/output/webhdfs#timekey
- rewrite tag filter: https://docs.fluentd.org/output/rewrite_tag_filter
- fluentd with winston: https://github.com/fluent/fluent-logger-node?tab=readme-ov-file#winston
example
fluentd.conf
<match apiserver.development>
@type rewrite_tag_filter
<rule>
key level
pattern /info/
tag info.dev.apiserver
</rule>
<rule>
key level
pattern /error/
tag error.dev.apiserver
</rule>
</match>
<match info.dev.apiserver>
@type file
path /var/log/fluent/apiserver_dev_info
<buffer>
timekey 1d
timekey_wait 10m
</buffer>
</match>
<match error.dev.apiserver>
@type file
path /var/log/fluent/apiserver_error_info
<buffer>
timekey 1d
timekey_wait 10m
</buffer>
</match>
Last updated on