![]() So we get basic file rotation and deletion for free. (you can change that value in the -D switch). This will copy the ‘daily.txt’ file to a file named (eg) daily20130503.txt and delete the original file – which will be recreated by Kiwi.įorfiles will then delete log files older than 30 days. Set %%a in (“e:syslogdaily.txt”) do copy %%a “%%~na_%All%.txt”įORFILES /P e:syslog /D -30 /C “cmd /c DEL it to run just a little before midnight every night. This batch file assumes we are using the directory E:syslog to store our syslog, and that the syslog created by Kiwi is called ‘daily.txt’Ĭreate the batch file below in another directory outside of the syslog directory (anything over certain age within the directory will be deleted)Ĭd /F “tokens=1,2,3 delims=/ ” %%A in (‘Date /t’) do Day=%%A However with a little batch file we can easily work around this problem, and use the free version. Unfortunately the rotate logs feature (along with a few other features) is only available in the registered version. The rotate logs feature is really handy, as it allows you to make multiple logs and delete old ones, rather than just letting a single log file grow to unmanageable proportions and fill up your C drive. However it is quite expensive for those just wanting to log a single firewall.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |