You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to specify dynamic file path/name in log-courier configuration file? The targeted log file rotates everyday with its name set as the date. It seems in logstash I can specify the file name in the configuration file as "/full_path/%{YEAR}%{MONTHNUM}%{MONTHDAY}". Is there a way to do this in log-courier?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
My only concern is timing though and if there could be missed logs because courier didn't see a dead file update at 23:59 on 2015-08-20 because it's next scan was 00:00 on 2015-08-21 and it scanned a different folder.
It all comes into timing with dead time I guess. Ensuring files kept open long enough to notice changes right until past the rotation.
#37 seems the root cause and this is a good partial solution. Be good to hear your thoughts on the dead time action mentioned there though.
Many thanks for the response. I agree with you that the dead time action should be a solution for our issue. We are running an old version of log-courier. I'll upgrade it to the latest version and try dead time. It would still be good to be able to specify file path with regex like "%{YEAR}%{MONTHNUM}%{MONTHDAY}" though.
Is there a way to specify dynamic file path/name in log-courier configuration file? The targeted log file rotates everyday with its name set as the date. It seems in logstash I can specify the file name in the configuration file as "/full_path/%{YEAR}%{MONTHNUM}%{MONTHDAY}". Is there a way to do this in log-courier?
Thanks in advance!
The text was updated successfully, but these errors were encountered: