Tuesday, August 9, 2011

Merging ULS logs across a farm!!

Merge-SPLogFile –Path "C:\Logs\FarmMergedLog.log" –Overwrite –StartTime "06/09/2008 16:00" –EndTime "06/09/2008 16:15"


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

Merge-SPLogFile –Path "C:\Logs\FarmMergedLog.log" -Overwrite

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

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

Merge-SPLogFile –Path "C:\Logs\FarmMergedLog.log" –Overwrite –Area Search

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

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

Merge-SPLogFile –Path "C:\Logs\FarmMergedLog.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:\Logs\FarmMergedLog.log" –Overwrite –Level High

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

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

Merge-SPLogFile –Path "C:\Logs\FarmMergedLog.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:\Logs\FarmMergedLog.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"

No comments:

Post a Comment