Is there a way to get ULS Logs from all servers in a farm in wss or moss. I need to obtain logs programmatically using C#. I can get logs from one server in a farm, but I need all of them. Any help appreciated.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use the ULS Viewer: http://ulsviewer.codeplex.com/
Or you could write your own logging service using
SPDiagnosticsServicehttp://msdn.microsoft.com/en-us/library/gg512103.aspx
Edit from the comments:
To read files directly you could do:
http://msdn.microsoft.com/en-us/library/system.io.streamreader.aspx