Merge-SPLogFile made “slightly” easier (PowerShell script)

Download script Here: mergesplogfile If you’re a SharePoint Administrator something you probably learned pretty early in your adventure is if there’s an error or problem. CHECK YOUR LOGS! APP LOGS, SYS LOGS, EVENT LOGS, ULS Logs, etc… There’s a saying that “LOGS DON’T LIE!” And I believe that to be accurate 99% of the time. Albeit of those logs are often as clear as mud…. Perhaps interviewers should be looking for people who have the skillset “fluent in reading logs” on their resume. Anyways, with SharePoint the best log source would be those produced by the Unified Logging Service, or ULS. Those are by default those logs are stored at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\(Hive)Logs But any admin worth their weight in donuts will immediately find another drive to write these logs to as they can, and will do their best to eat up every available bit of drive space you have available, particularly when you use the VERBOSE setting. If there’s a SharePoint issue, most likely you’ll find the culprit and root cause in the ULS log. If you have a multi farm environment, then each one of those servers gets it’s own set of ULS logs. This is great because if your search server is angry and logging a ton of search related stuff in it’s ULS folder, your Web Front End Server doesn’t have to suffer with all those...

Read More