Retrieving logs for a particular Correaltion ID
get-splogevent | ?{$_.Correlation -eq "<Correlation ID>"} | select Area, Category, Level, EventID,Message | Format-List > D:\Clog.log
Logs between for a particular timestamp
Merge-SPLogFile -Path "D:\FarmMergedLog.log" -Overwrite -StartTime "08/23/2016 15:54:00" -EndTime "08/23/2016 15:56:00"
Merge-SPlogfile –Path d:\Mlog.log –Correlation "68d04964-245d-47c0-8591-0055c1454e04"
All Solutions backup
$pathName = "d:\wspbackup"
foreach ( $solution in Get-SPSolution)
{
$solid = $solution.SolutionID
$title= $solution.Name
$filename = $solution.SolutionFile.Name
$solution.SolutionFile.SaveAs("$pathName\$FileName")
}
Note: WeblogExport is one of the best tool to track statistics, visitors, Errors, countries,Activity, Access,Referrers, Browsers ...
get-splogevent | ?{$_.Correlation -eq "<Correlation ID>"} | select Area, Category, Level, EventID,Message | Format-List > D:\Clog.log
Logs between for a particular timestamp
Merge-SPLogFile -Path "D:\FarmMergedLog.log" -Overwrite -StartTime "08/23/2016 15:54:00" -EndTime "08/23/2016 15:56:00"
Merge-SPlogfile –Path d:\Mlog.log –Correlation "68d04964-245d-47c0-8591-0055c1454e04"
All Solutions backup
$pathName = "d:\wspbackup"
foreach ( $solution in Get-SPSolution)
{
$solid = $solution.SolutionID
$title= $solution.Name
$filename = $solution.SolutionFile.Name
$solution.SolutionFile.SaveAs("$pathName\$FileName")
}
Note: WeblogExport is one of the best tool to track statistics, visitors, Errors, countries,Activity, Access,Referrers, Browsers ...
No comments:
Post a Comment