How to find corresponding log files folder for a web site?

Solution 1:

Ok, I've found this property - it's called "site id" and resides in "Advanced Properties" of the website.

Solution 2:

'Open IIS manager, click on the top level websites folder, view the lists of sites in the right hand pane, listing the App ID's.'

enter image description here

thanks to Sam on Server Fault

Solution 3:

We can also get it using command line :

C:\>%windir%\system32\inetsrv\appcmd list site

The output would be like below:

SITE "Default Web Site" (id:1,bindings:HTTP/*:80:,state:Started)
SITE "Site1" (id:2,bindings:http/*:81:,state:Started)

The id field corresponds to the id found in log files. inetpub\logs\LogFiles (W3SVC1, W3SVC2