Results 1 to 4 of 4

Thread: Location of IIS Log Files

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width