Skip to content

Instantly share code, notes, and snippets.

@ikuwow
Created February 21, 2016 02:48
Show Gist options
  • Save ikuwow/ca85809f92ef34adef40 to your computer and use it in GitHub Desktop.
Save ikuwow/ca85809f92ef34adef40 to your computer and use it in GitHub Desktop.
fluentdのread_from_headでログの欠損が治ったパターン ref: http://qiita.com/ikuwow/items/ea300af9d0ff2d90d69c
log-2016-02-01-00.log
log-2016-02-01-01.log
...
log-2016-02-01-22.log
log-2016-02-01-23.log
log-2016-02-02-00.log
<source>
type tail
path /path/to/log/log-%Y-%m-%d-%H.log
... 以下略
</source>
<source>
type tail
path /path/to/log/log-%Y-%m-%d-%H.log
read_from_head true
... 以下略
</source>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment