IIS: Where can I find the IIS logs?

Viewed 641227

I'm trying to set up an application from a third party, which requires a supporting website hosted in my local IIS. I've created a website exactly as explained in their install guide, but am having some problems, and would like to see what the IIS log has to say. Embarrassingly enough, the problem is I can't find the log files!

So my question is: Where does IIS7 store logs by default?

11 Answers

C:\inetpub\logs\LogFiles

Check the identity of the site going to sites and advanced settings

The simplest answer is to query like this:

(Get-Website * | % { $_.logFile.Directory});ls $GetIISLogs\W3SVC1\*

If you have more than one site you will get more than one answer, so you need to query with a 'foreach' to get the website name with the directory...

Related