SharePoint has a variety of ways to extract information about issues in your farm. One of the most trusted sources to determine the cause of the particular issue is using Unified Logging Service (ULS) logs.
If your farm is set to catch detailed errors of multiple features in the system, you might run into a challenge to find the useful information from your logs purely due to the large volumes of data collected.
In this recipe, we'll take a look at how you can use PowerShell to extract useful information about issues happening in the farm.
Considering you are using virtual development environment as described in Chapter 1, PowerShell Scripting Methods and Creating Custom Commands, you're all set and your farm is configured to collect log information based on events happening in SharePoint.
In this recipe, we'll be using PowerGUI to author the script, which means you will be required to be logged in with an administrator's role...