ULS Logs Check RRS feed

  • Question

  • Hi,

    We have 4 WFE Servers and 3 App Servers and 2 DB Servers.

    When we have an issue and look Logs to fix issues.

    In which server do we need check for logs in sharepoint farm.?

    Your inputs are appreciated.


    Wednesday, April 10, 2013 3:01 PM


All replies

  • All? :-)  It depends on what features are running where.

    To make this easier, you can use Merge-SPLogFile which will gather the log files from all servers in the farm and output to a single log file.

    SharePoint - Nauplius Applications
    Microsoft SharePoint Server MVP
    MCITP: SharePoint Administrator 2010

    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

    Wednesday, April 10, 2013 3:12 PM
  • If you can re-create the issue, add server specific URL in different zone using Alternate Access Mapping. Then access the site using AAM url, re-create the issue. Check the logs of that WFE server. This applies if it is site specific issue.

    If the issue is specific to service application, you have to check in APP server logs.

    You can view the log easily by opening Windows PowerShell ISE (An Editor, must run with administrative privileges). It is located in Accessories folder of start menu. Use 64-bit version.

    Ensure that you have shell admin access or else use Add-SPShellAdmin cmdlet after loading snap in given below.

    1. First load snap In by executing the below cmdlet.

    Add-PSSnapIn Microsoft.SharePoint.PowerShell

    2. If you have Correlation ID, use below statement.

    Get-SPLogEvent -StartTime "04/10/2013 02:13:05 AM" -EndTime "04/10/2013 02:13:50 AM"|?{$_.Correlation -eq "<correlation ID>"}|fl 

    Do not use angle brackets with correlation id.

    Use the time stamp of the Correlation ID to specify start and end time.

    Sometimes, Event Viewer also gives good details of the error.

    Pradip T. ------------- MCTS(SharePoint 2010/Web)|MCPD(Web Development) https://www.mcpvirtualbusinesscard.com/VBCServer/paddytakate/profile

    • Edited by Pradip T Wednesday, April 10, 2013 3:23 PM
    • Proposed as answer by Trevor SewardMVP Friday, April 12, 2013 10:29 PM
    Wednesday, April 10, 2013 3:19 PM
  • Thanks for your answers.

    What about WSS_Logging database in sql server. I think it will contain logs from all servers.

    will it be good to look in that db.

    please let me know your thoughts on this.



    Wednesday, April 10, 2013 4:56 PM
  • Thursday, April 11, 2013 7:04 AM