IIS not creating a log file

I am running windows server 2016, it's a new install. I'm testing some of the websites, and when I browse to the website, and click on some of the links, when I go to my logs on my IIS server, no log exists.  This is the case for all our sites.  Here's what I did so far:
1. For testing, I have updated my local hosts file to point to the new server for all the different sites
2. When I ping a website, the ping reply is correct, it's the IP on the new server for the SSL cert
3. Traceroute is the same, it comes back with the IP of the new server
4. I did a iisreset, stil nothing.
5. I double checked and logging is enabled per website
6. I checked our old web server and it I saw my traffic there, so not sure how it's still going to the old site?

How can I figure out why my browsing the website goes to the old server when it's supposed ot go to the new server based on my hosts file.
DanNetwork EngineerAsked:
Who is Participating?
 
arnoldConnect With a Mentor Commented:
You missed either the step or you are looking for the log in the wrong place.

Newer log in c:\inetpub\logs..

See the following, https://technet.microsoft.com/en-us/library/hh831775(v=ws.11).aspx

Confirm you not only enable logging on the iis role, but actually configure the log when you select the site, look at logs and their location..
0
 
dfkeConnect With a Mentor Commented:
Hi,

see what happens if you change the default log location to a different folder and check for log creation there.

Cheers
0
 
DanNetwork EngineerAuthor Commented:
Thanks guys, got it fixed.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.