It is very handy using Get - SPLogEvent power shell command to retrieve logs from ULS in certain time period .
Use bellow command syntax
get-splogevent -starttime (get-date).addminutes(-20) | where-object { $_.correlation -eq “b66db71a-3257-4470-adf9-5c01dc59ecb3″ } | fl message > c:\errors.txt
For more information please follow link
Use bellow command syntax
get-splogevent -starttime (get-date).addminutes(-20) | where-object { $_.correlation -eq “b66db71a-3257-4470-adf9-5c01dc59ecb3″ } | fl message > c:\errors.txt
For more information please follow link