Hi,
I have written an daemon that is monitoring FTP uploads. I am using FAM to monitor the /var/log/vsftpd.log
In general it is working as it should, but there is one step were vsftpd is swapping the old FTP file to history like:
vsftpd.log.1 vsftpd.log.2 ...
The problem is that if there is no activity on the FTP for a longer period (lets say 5 days), the file will be swapped at the current write to the log file remaining only the last log line in the log file.
What daemon is writing these log files? And how it is working? Are the files swapped? Renamed? Piped?
/Peter
On Fri, 2007-04-27 at 13:24 +0700, lists@dwsasia.com wrote:
What daemon is writing these log files? And how it is working? Are the files swapped? Renamed? Piped?
logrotate?
I'm not sure if it messes with the log that you mention, but it is used for managing other logs.
Tim wrote:
On Fri, 2007-04-27 at 13:24 +0700, lists@dwsasia.com wrote:
What daemon is writing these log files? And how it is working? Are the files swapped? Renamed? Piped?
logrotate?
I'm not sure if it messes with the log that you mention, but it is used for managing other logs
Yes, it's logrotate ..
Radek