With this config, if your hostname is koala
and if you have files like
log/t1.log
/t2.log
/...
They are sent to
receiver/koala.t1.20141219.log
/koala.t2.20141219.log
/...
Right now, the time_format
must appear in out_file
. If you don't want it in the file name, you can embedded in the path by replacing
path receiver/${tag_parts[1..-2]}.*.log
with
path receiver/*/${tag_parts[1..-2]}.log
in receiver.conf
. That would change the file structure to
receiver/20141219/koala.t1.log
/20141219/koala.t2.log
/...
aargh, it cut off the error again. i will separate on multiple lines to ensure it works
2014-12-19 22:54:40 +1100 [warn]: fluent/engine.rb:163:rescue in emit_stream: emit transaction failed error_class=Errno::ENOENT error=#
< Errno::ENOENT: No such file or directory @ rb_sysopen - receiver/clienthost/20141219.b50a905fb6d385fd9/wifi.log >