Closed ahrtr closed 6 years ago
I've set up a testing environment and confirmed that a <buffer>
section without
tag
works just fine as the documentation describs.
<source>
@type http
</source>
<match debug.**>
@type file
path /tmp/data/fluentd_${key}
<buffer key>
@type memory
flush_interval 5s
</buffer>
</match>
$ fluentd -c test.conf &
...
2018-05-28 14:19:18 +0900 [info]: #0 fluentd worker is now running worker=0
$ curl -d 'json={"key":"xyz"}' http://localhost:9880/debug.log
$ curl -d 'json={"key":"abc"}' http://localhost:9880/debug.log
$ curl -d 'json={"key":"def"}' http://localhost:9880/debug.log
$ ls /tmp/data/
fluentd_abc_0.log fluentd_xyz_0.log fluentd_def_0.log
I'm guessing that your configuration was not set up correctly. Can you post your configuration file here?
This is elasticsearch plugin limitation. So closed.
Per the following guide,
<buffer key1>
should work. But actully 'tag' must be included as well, otherwise, fluentd can't be started. https://docs.fluentd.org/v1.0/articles/buffer-section#other-keys