Based on the timeslice?
I’m using the forest output plugin along with file and s3 to store syslog from my machines that come in via fluentd.
I’d like to have fluentd store logs like this: /directory/2014/03/05/hostname.timeslice.log
I think with the file output plugin and forest, I can accomplish basically everything but the /2014/03/05 dynamically, unless there is a hidden config option I don’t know about.
Alternatively, is there another file output plugin that can do this? I don’t want to store 24, hourly log files for 300’ish hosts per day in a single directory if I can otherwise help it.
Thanks!
--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I’ve considered doing that, and we’ve done it in the past, but it makes it easier to keep a day’s worth of logs per directory for all hosts since we have a lot of clusters so it makes searches easier.
Can I suggest that you add wildcards to the path config in out_file? J
It would be nice to do /directory/%Y/%M/%d/blah.log
I’m already using forest to store the logs as hostname.timeslice.log.
Thanks!
Wow… Haha, that’s awesome! Great hack, but I’m afraid to use it now J