Hello,
we have migrated to BES 5.0 from 4.6.
We have set the option
Maximum age of daily log files: 7
under the "component view" -> "logging" -> "bes instance"
sure that log files will be deleted after 7 days from their creation.
But it doesn't work
In the "log" directories we find directories old more of 7 days with log files inside.
Why it doesn't delete the log files and directories ?
Which options we have to set ?
Thanks
Regards
Corrado
Thank you for your reply.
So it isn't a bad function of bes server... we will have to work to solve the problem.
Thanks
Also note that if you had 14 days worth of logs in there already and set it to delete after 7 days, it only takes in effect 7 days after it was set so any logs already in the folder will not be removed automatically, it's by design.
My 2 cents I personally like to keep logs for auditing requests. If you zip the daily folders by month it greatly reduces the space used up by the logs. And you can store the zipped logs on a network share or other form of media.
As I had the same issue with my install I use a VB script to do my cleanups.
I have attached the code in a TXT file.
I must admit its not my code. It was taken from another post in the Scripts forum.
The log retention is set to -7 days.
I have a schedulled task running every sunday which deletes all logs which are older than 7 days. So on the sunday at 23:00 before the task runs I have 2 weeks worth of full logs. at 00:01 on Monday morning I have only Sunday to Sunday logs with 1 full week of logs left for troubleshooting.