SPLogEvent in Sharepoint

To get the SharePoint server log from the ULS using the power shell command provided if you have a co-relation ID then
 
get-splogevent -starttime (get-date).addminutes(|-no of minutes) | where-object { $_.correlation -eq "co-relation id" } | fl message > c:\errors_just_now.txt
 *  co-relation id  is the id which you see in the Error Message
 *  no -of minutes is the approximate time you faced the issue 

Lakshmanan Sethu Sankaranarayan

Lakshmanan Sethu Sankaranarayanan is an award winning Technical account Manager . He helps enterprise, digital native customers help migrating to cloud , very specialised in Data & AI & ML cloud solutions and cu... Read more

http://www.letsharepoint.com