Thursday, 10 September 2015

Reading the TFS update logs

Did you ever read a TFS update log? If not, you should do it.

Once you do anything on the TFS databases, all the operations are logged, obviously. You can reach these logs from the Administration Console:

image

image

The amount of data in there is really helpful – for example, each Stored Procedure used by the installer is detailed, giving you an idea of what happens to your databases during each update:

image

And you also get a recap of how long it took with each individual timing:

image

That is interesting enough if everything works, but what about when something fails?

Well, that’s even better, because if you experience an error whatsoever, you will get a detailed exception stacktrace in the logs:

image

This gives you a real actionable insight before touching anything or raising the phone to call CSS.

1 comment:

  1. how can the logs been deleted ?
    just deleting the files in the log folder does not work as they're restored the next time you access TFS Admin Console -> Logs

    ReplyDelete