Monitoring and backing up event logs with MOM
With MOM you can automate the following tasks:
- check event log free space on MOM agent computers
- backup the event logs to a remote share
I have attached the 2 scripts I used for this (modified well-known scripts from Scripting Center). I also attached a Management Pack AKM with rules that show how you can use the scripts.
IMPORTANT: Deploy this fix before you use the scripts if your MOM agents are running under LOCAL SYSTEM account:
https://support.microsoft.com/kb/913366/en-us
This fix addresses an issue where the Local system account running the MOM host process was denied Backup privilege (even if you explicitly granted it to the Local System).
I hope you find this useful.
https://lipkaa.members.winisp.net/MOM%202005/MonitorEventLogs.zip