zoukankan      html  css  js  c++  java
  • How To Collect ULS Log from SharePoint Farm

    We can use below command to collect SharePoint ULS log from all servers in the Farm in PowerShell.

    Merge-SPLogFile

    --------------EXAMPLE 1-----------------

    Merge-SPLogFile -Path "C:LogsFarmMergedLog.log" -Overwrite
    

    This example merges the last hour of log data from all farm computers with no filtering.

    --------------EXAMPLE 2-----------------

    Merge-SPLogFile -Path "C:LogsFarmMergedLog.log" -Overwrite -Area Search
    

    This example merges the last hour of log data from the Search area.

    --------------EXAMPLE 3-----------------

    Merge-SPLogFile -Path "C:LogsFarmMergedLog.log" -Overwrite -Area "SharePoint Foundation","Web Analytics Services"
    

    This example merges the last hour of log data from the SharePoint Foundation and Web Analytics Services areas.

    --------------EXAMPLE 4-----------------

    Merge-SPLogFile -Path "C:LogsFarmMergedLog.log" -Overwrite -Level High
    

    This example merges the log data of level High or higher.

    --------------EXAMPLE 5-----------------

    Merge-SPLogFile -Path "C:LogsFarmMergedLog.log" -Overwrite -StartTime "06/09/2008 16:00" - EndTime "06/09/2008 16:15"
    

    This example merges the log data for events in a particular time range, which is culture-specific to the United States.

    --------------EXAMPLE 6-----------------

    Merge-SPLogFile -Path "C:LogsFarmMergedLog.log" -Overwrite -Message "*permission changed*"
    

    This example merges the log data for events with permission changed in the message text.

    --------------EXAMPLE 7-----------------

    Merge-SPLogFile -Overwrite -Path d:1.log -ContextFilter "name=timer job*" -Area "*search*"
    

    This example merges the log data for all search timer jobs.

    --------------EXAMPLE 8-----------------

    Merge-SPLogFile -Overwrite -Path d:2.log -ContextFilter "user=contoso?joeuser"
    

    This example shows how to merge the log data for all user names that have a contosojoeuser or Contoso/joeuser format.

    Merge-SPLogFile -Correlation {Correlation ID} -Path D:MergedLogs.log -StartTime "11/21/2015 13:00:00" -EndTime "11/21/2015 14:00:00"

    Reference:https://technet.microsoft.com/en-us/library/ff607721.aspx

  • 相关阅读:
    luffy-短信接口频率限制,以及前端发送,和注册
    腾讯云短信开发
    luffy-登录注册页面
    vue之vue-cookies 获取、设置以及删除指定的cookies
    pycharm操作git
    luffy的前端主页
    vue路由跳转的方式
    django 中的Model继承
    跨域请求CORS详解
    vue:实现图书购物车
  • 原文地址:https://www.cnblogs.com/Bear-Study-Hard/p/5039122.html
Copyright © 2011-2022 走看看