Open GuiTeK opened 3 years ago
@id in the
section.
@id
should be in output configuration, not <buffer>
. Could you re-check your configuration?
Example from docs:
<system>
workers 2
root_dir /var/log/fluentd
</system>
<match pattern>
@type forward
@id out_fwd
<buffer>
@type file
</buffer>
</match>
Hi @repeatedly,
Thank you for your comment! Indeed you are right.
However, we tried to put it everywhere (<store>
, <match>
, <buffer>
) but we get a different error each time and it doesn't work.
I edited my original post to reflect this.
(this message was edited after @repeatedly comment but the issue is still valid)
Describe the bug
The doc states that when using multi process workers and file buffers,
path
in the<buffer>
section should be omitted in favour ofroot_dir
in the<system>
section and@id
in the output section.We tried to do it with a
<buffer>
section for theout_elasticsearch
plugin like so:and we got the following error when starting Fluentd:
EDIT: as @repeatedly said,
@id
should go in the output configuration and not in the<buffer>
configuration. So we tried this as well, and then Fluentd crashes without any error message (even withlog_level trace
):Finally we tried to put the
@id
in our<match>
block directly (not in<store>
), and we get the following:Finally, we did the following, and not only it worked, but it also automatically created subfolders
/var/lib/td-agent/worker0
and/var/lib/td-agent/worker1
, which suggests that what the doc states is useless/outdated:Link to the problematic documentation
https://docs.fluentd.org/deployment/multi-process-workers
Expected explanation
Not sure what is the right combination of settings, but clearly the current doc produces an error.
Additional context
No response