|
-
Jul 17th, 2006, 12:30 PM
#1
Location of IIS Log Files
newbie alert (been awhile since I said that)...
Is there some way to programmatically know the directory where the log files for a site are located? I am trying to automate the creation of web stats from the log files.
Also, how do you setup/create a web application which all websites on the server can use. For example, navigating to www.domain1.com/sitestats and www.domain2.ca/sitestats will run the same code.
-
Jul 17th, 2006, 04:37 PM
#2
Re: Location of IIS Log Files
Programmatically... hmm.
Are you using IIS 6? I am taking a stab in the dark at this, but if you could get to the IIS metabase then you could find out where it is.
-
Jul 17th, 2006, 06:06 PM
#3
Re: Location of IIS Log Files
Yes, II6 on W2K3. IIS only lets one specify the parent folder where log files are stored and insists on having a sub-folder based on the log type and website numeric id. If there was a way to change that I would be a happy camper...
If I could get the numeric id, I could hard-code the rest. Will check out this metabase thingy...
Any thoughts on question 2.
-
Jul 18th, 2006, 07:55 AM
#4
Re: Location of IIS Log Files
I'll think about your Q1 a bit and come back if I have more to add.
For Q2, you can redirect a subfolder to a website in IIS. Place your web application... wherever.
Under all the other domains, create a folder of whatever name (in your case, sitestats) and right click it, properties, and in the dialog, you'll see "A redirection to a URL." You can specify the URL you want there.
HTH
Edit: What did Spock find in Kirk's toilet bowl? The Captain's Log!
Last edited by mendhak; Jul 18th, 2006 at 11:25 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|