SharePoint logs and IIS logs backup/archive and Compress to a file
The data keeps on growing as the SharePoint Farm being adopted more into the company and customers. It brings more challenges in terms of keeping up with the pace of requests and data administration. We are going to address today one part of that problem which is managing SharePoint LOGS weather it is ULS, Diagnostic and Analytic logging. Also it includes IIS logs. To address this challenge I did wrote a small script to migrate these logs to a different directory and them zip these logs and move to a network storage or to another directory on the local hard drive. Some of the challenges to achieve this were · There are IIS logs with same file names in different directories (mainly IIS logs) we need to maintain the directories structure to not miss any logs. · The criteria to move these logs out is based on a number of day , like I need to move all the logs 15 or older away from the default logs folder or drive. · Then zip these logs and add to sa
Comments
Post a Comment