fluent / fluentd

Fluentd: Unified Logging Layer (project under CNCF)
https://www.fluentd.org
Apache License 2.0
12.88k stars 1.34k forks source link

Fluentd not detected the log files be overrided #3114

Closed xiviu123 closed 4 years ago

xiviu123 commented 4 years ago

I'm using:

fluentd 1.6.3

Fluentd config:

<worker 0>
<source>
  @type tail
  path /logs/*.log
  pos_file /fluentd/log/log.pos
  #     format json
  read_from_head false
  enable_stat_watcher false
  tag "#{ENV["TAG_PREFIX"]}.match.log"
  @label @INPUT
</source>
</worker>

My log files are generated by log4j. For some reason the current file be deleted , the log4j will create new file with same name. Now fluend not detect the new file. In this case i want to fluentd detect new file from the begining. please help to config thank you

github-actions[bot] commented 4 years ago

@xiviu123 this issue was automatically closed because it did not follow the issue template