on 03-11-2015 1:27 PM
Is there a way to automate the clean-up of Agentry Rolled logs in a Windows environment?
In the old Agentry standalone version (not integrated to SMP), I added a Service Event executed every 24h in the Agentry application calling a step with my own Java DeleteRolledLogs class.
It is just an idea, but I think it doesn't make sense in SMP since you can have more than one Agentry application and my solution is deployed together with one of the apps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes I understand it could work, but the problem is when you delete the Agentry application containing the Service Event deleting the rolled logs.
In the past we had a single application for Agentry server, meaning no application --> No logs to roll.
Now if you have 3 Agentry apps in SMP and you delete the one containing the service event, the rest will continue generating logs...
Of course you can always add this service event to all your Agentry applications, or have an ad-hoc Agentry application only performing this task... But doesn't seem the best option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no built in way to do this. To get it to work, you would can use run a bat file with Windows Task Scheduler. Run a batch file with Windows task scheduler - Stack Overflow
Then in the Bat file you can delete folders that more then X days old Batch file to delete folders older than 10 days in Windows 7 - Stack Overflow
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.