fluentd ver 1.x
multiprocess
<system>
workers 2
</system>
But any plugins do not supprt multiprocess e.g. debug_agent.
sender sample
<source>
@type tail
path /tmp/test.log
pos_file /tmp/td-pos/test.log
tag hoge.test
format none
read_from_head true
</source>
<match hoge.**>
@type forward
<server>
host <your fluend-server>
port 24224
</server>
buffer_type file
buffer_path /tmp/buff/test.*.buff
flush_at_shutdown true
</match>
out_file
path = buffer_path
The path parameter is used as buffer_path in this plugin.
So..
- No need to set
buffer_path. - If you dislike bufferd path like "/path/to/file.20140101.log.b4eea2c8166b147a0", set
flush_interval 0s
Of course , even if you set flush_interval 0s, buffers path created at the moment.
output RAW format
format single_value retruns parts of JSON message: key. If you return other key, set message_key <YOUR_KEY>. i.e.) default is message_key message
Stop split!
append true
symlink_path
Link to latest buffer file. But when just after logrotate (kill USR1) or no buffer file, this link to be a dead link.
symlink_path can not set * (wild card)
out buffer
default limit
| type | buffer_chunk_limit | buffer_queue_limit | total |
|---|---|---|---|
| file | 256 | 8MB | 2GB |
| memory | 64 | 8MB | 512MB |