Replies: 2 comments 60 replies
-
So the logs appended to the previous file should still be read in this case. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer, do you have some ideas to test some different configuration? i thought that or maybe some change in |
Beta Was this translation helpful? Give feedback.
-
With below configuration for
source.conf
filei have following issue.
On 12PM new log file is created on path:
/y=2023/m=06/d=21/h=12/m=00/logs.json
According to
refresh_interval 60
property, logs are read from json file every minute.Json logs are rotated every hour so next file is created under
/y=2023/m=06/d=21/h=13/m=00/logs.json
path.So if it became 12:59:01 time it reads a logs from file
/y=2023/m=06/d=21/h=12/m=00/logs.json
and on next interval on 13:00:01 it started to reading from file/y=2023/m=06/d=21/h=13/m=00/logs.json
which means that logs between 12:59:01 till 13:00:00 from/y=2023/m=06/d=21/h=12/m=00/logs.json
file is missedrotate_wait
does not work with that config withstrftime
on pathIs there any configuration example to not lost data every hour with
strftime
config?Beta Was this translation helpful? Give feedback.
All reactions