windows log rotation file from application


#1 JenaHalo

Hi, I am using nxlog first time and I need to send out application logs from windows OS. But there is new log every day with date time .... . Will be enought use this:

Module im_file File "D:\Logs\AppLogs\*.log" SavePos TRUE ReadFromLast TRUE PollInterval 1 Exec $Message = $raw_event; $SyslogFacilityValue = 22;

thank you

#2 b0ti Nxlog ✓
#1 JenaHalo
Hi, I am using nxlog first time and I need to send out application logs from windows OS. But there is new log every day with date time .... . Will be enought use this: Module im_file File "D:\Logs\AppLogs\*.log" SavePos TRUE ReadFromLast TRUE PollInterval 1 Exec $Message = $raw_event; $SyslogFacilityValue = 22; thank you

Yes, but it is always a good idea to periodically move out old files otherwise if it ends up monitoring thousands of files it will cause some overhead.