How many times have you wanted to check the IIS Request Logs to see if anything is going wrong, only to find a bunch of arbitrarily named W3SVx folders because you have more than one website running? And then you open the folder, but all of the log files are also arbitrarily named? And then you have to guess until you find the right one?
Thankfully
…there’s a smarter way. Or, at least a method to the madness. And that method will help you find the right folder without hunting and pecking. Inside IIS, navigate to the site you want to view logs for and click “Advanced Settings…” in the right pane
This will bring up a window with an ID number.
This number will correspond to the last number in the folder.
I can’t really express how many times
…I’ve had to hunt and peck for this information. I usually found myself saying “this is annoying, there’s probably a better way!” But then never actually investigating it. Well, its not too bad, and it might save you a couple of seconds when you’re desperately trying to find that bug that only happens in production.