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
/...
ok looks like i had cut/paste fail.... her eis the full error i was seeing :-
2014-12-19 22:54:40 +1100 [info]: plugin/out_forest.rb:138:plant: out_forest plants new output: file for tag 'with_hostname.clienthost.wifi.log'
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>
looks like its failing to either create or read from the intermediate buffer file....