# Ignore files which were modified more then the defined timespan in the past.
# ignore_older is disabled by default, so no files are ignored by setting it to 0.
# Time strings like 2h (2 hours), 5m (5 minutes) can be used.
#ignore_older: 0
可以通过ignore_older参数排除掉多少小时以前的数据。
Wenbo Yang
- https://www.linkedin.com/in/yangwenbo214
4 个回复
leighton_buaa
赞同来自:
/mnt/server/backup/nginxlog/pc-load/*/*.log
lucky_girl - 95 IT女
赞同来自:
xiaoke - http://blog.51cto.com/kexiaoke
赞同来自:
# ignore_older is disabled by default, so no files are ignored by setting it to 0.
# Time strings like 2h (2 hours), 5m (5 minutes) can be used.
#ignore_older: 0
可以通过ignore_older参数排除掉多少小时以前的数据。
Wenbo Yang - https://www.linkedin.com/in/yangwenbo214
赞同来自:
/2017/01/a.log
/2017/02/b.log
/2016/01/c.log
/2016/02/d/log
这个你直接路径写成/2017/*/*.log
这样不会读取你2016文件夹中的log了。