Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I log directories or files SEPERATELY? Different log files for each that I choose, not just for the "website" directly under "web sites". If IIS cannot natively do this, is there perhaps another way? I need the file accessed, referring URL, and if possible, IP address.

Server: Microsoft-IIS/6.0 MicrosoftOfficeWebServer: 5.0_Pub
Windows Servers 2003 R2 Standard Edition Service Pack 2

share|improve this question

3 Answers 3

IIS logs are per site only.

Log Parser is a great tool for extracting a certain category of events from your logs, like every reuqest that took more than .5 seconds to process or every 404 returned.

WebTrends or AWStats sounds more like your tool, though. You point these tools at your logs, and they slice and dice your visits looking for trends to exploit or correct. They will help you pick out active or overlooked parts of your site and adjust accordingly.

share|improve this answer

I had a need to do something similar, but I ended up writing a script (perl in this case) that post-processed the log each day to create the per-directory logs I needed. It would have been nice to have a live way of doing it.

share|improve this answer

If the information you want is in the IIS log then you could use LogParser. I haven't used it myself but you use SQL SELECT statements to extract date from the file.

Theres an example here but you be better off with my first link.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.