Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS: Where can I find the IIS logs?

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?

like image 361
Kjartan Avatar asked Jun 21 '11 13:06

Kjartan


People also ask

How do I view IIS LogFiles?

Right-click the server that is installed under IIS, and on the menu that is displayed, click Internet Information Services (IIS) Manager. A very important observation—The system administrator can change the directory where the log is saved.

How do I view IIS logs in Windows 10?

Run Internet Information Services (IIS) Find your web site under the tree on the left and right-click on it. Choose 'properties' On the Web Site tab, you should see an option near the bottom that says "Active Log Format." Next to it is a Properties button.

What are the IIS logs?

IIS logging is one type of server side logging that can be enabled on a URL group. The IIS log file format is a fixed ASCII text-based format that cannot be customized. The IIS log file contains the HTTP Server API kernel-mode cache hits.


2 Answers

I think the default place for access logs is

%SystemDrive%\inetpub\logs\LogFiles 

Otherwise, check under IIS Manager, select the computer on the left pane, and in the middle pane, go under "Logging" in the IIS area. There you will se the default location for all sites (this is however overridable on all sites)

You could also look into

%SystemDrive%\Windows\System32\LogFiles\HTTPERR 

Which will contain similar log files that only represents errors.

like image 81
jishi Avatar answered Oct 21 '22 08:10

jishi


I believe this is an easier way of knowing where your IIS logs are, rather than just assuming a default location:

Go to your IIS site, e.g. Default, click on it, and you should see "Logging" to the right if logging is enabled:

enter image description here

Open it and you should see the folder right there:

enter image description here

You are welcome!

like image 38
Rafid Avatar answered Oct 21 '22 10:10

Rafid