I want to have a separate log file for each virtual directory or application under a web site. I was able to do it in IIS 6.0 and don't see that option in IIS 7.5. I did some online research and learned that we can setup the logging at server level and
website level only in IIS 7.5.
But, I am not sure if there is any option to set the logging at the application level. Could you please let me know if there is any option to set it in IIS7.5 and how? Thanks in advance.
I tried to do that. But, all options under Logging module are grayed out. The logging is to per site. I can only make the changes at the site level but not at the application level.
I installed the Advanced logging but I still don't see any option to change the logging path. It is giving me an option to add/remove logging fields but not allowing me to change the log file path. Please advise.
To edit the log directoy path you need to select Advanced Logging at the server level, then you will see a link to "Edit Logging Directory".
Once you add a log definition at the Application level and start logging you will see that it seperates the logs into their own directories beneath the root logging directory .
akk_prasad
15 Posts
IIS logging at virtual directory or application level in IIS 7.5
Jun 27, 2012 10:28 PM|LINK
Hello,
I want to have a separate log file for each virtual directory or application under a web site. I was able to do it in IIS 6.0 and don't see that option in IIS 7.5. I did some online research and learned that we can setup the logging at server level and website level only in IIS 7.5.
But, I am not sure if there is any option to set the logging at the application level. Could you please let me know if there is any option to set it in IIS7.5 and how? Thanks in advance.
application level logging
JamieFurr
539 Posts
Re: IIS logging at virtual directory or application level in IIS 7.5
Jun 27, 2012 11:04 PM|LINK
Hi akk_prasad,
You can achieve this using the HTTP Logging module. You can install HTTP Logging using the Web Platform Installer.
Once it is installed do the following:
- Open IIS Manager
- Click on your Application
-Click on the Logging Module Icon.
Please let me know if this helps you.
MCSA, Network +, A+
Please 'Mark as Answer' if this post helps you.
OrcsWeb: Managed Windows Hosting Solutions
"Remarkable Service. Remarkable Support."
akk_prasad
15 Posts
Re: IIS logging at virtual directory or application level in IIS 7.5
Jun 27, 2012 11:20 PM|LINK
Hi Jamie,
I tried to do that. But, all options under Logging module are grayed out. The logging is to per site. I can only make the changes at the site level but not at the application level.
JamieFurr
539 Posts
Re: IIS logging at virtual directory or application level in IIS 7.5
Jun 28, 2012 12:34 AM|LINK
MCSA, Network +, A+
Please 'Mark as Answer' if this post helps you.
OrcsWeb: Managed Windows Hosting Solutions
"Remarkable Service. Remarkable Support."
akk_prasad
15 Posts
Re: IIS logging at virtual directory or application level in IIS 7.5
Jun 28, 2012 12:51 AM|LINK
Would you please let me know how to install advanced logging and setting up in more detail? or provide me a link where I can get this info?
JamieFurr
539 Posts
Re: IIS logging at virtual directory or application level in IIS 7.5
Jun 28, 2012 01:05 AM|LINK
Hi akk_prasad,
You can install Advanced Logging using the Web Platform Installer. Or at the following URL http://www.iis.net/download/AdvancedLogging.
Here's a good tutorial on setting up the custom definitions. http://learn.iis.net/page.aspx/579/advanced-logging-for-iis---custom-logging/
Once you enable Advanced logging and enable the custom definitions at the Application level, IIS will begin logging.
Note: You may need to also restart IIS after enabling Advanced Logging.
Please let me know if this helps you.
MCSA, Network +, A+
Please 'Mark as Answer' if this post helps you.
OrcsWeb: Managed Windows Hosting Solutions
"Remarkable Service. Remarkable Support."
akk_prasad
15 Posts
Re: IIS logging at virtual directory or application level in IIS 7.5
Jun 28, 2012 01:20 AM|LINK
Thanks much Jamie. I will give a try and will let you know how it works.
akk_prasad
15 Posts
Re: IIS logging at virtual directory or application level in IIS 7.5
Jun 28, 2012 02:15 PM|LINK
Jamie,
I installed the Advanced logging but I still don't see any option to change the logging path. It is giving me an option to add/remove logging fields but not allowing me to change the log file path. Please advise.
JamieFurr
539 Posts
Re: IIS logging at virtual directory or application level in IIS 7.5
Jun 28, 2012 05:17 PM|LINK
Hi akk,
To edit the log directoy path you need to select Advanced Logging at the server level, then you will see a link to "Edit Logging Directory".
Once you add a log definition at the Application level and start logging you will see that it seperates the logs into their own directories beneath the root logging directory .
MCSA, Network +, A+
Please 'Mark as Answer' if this post helps you.
OrcsWeb: Managed Windows Hosting Solutions
"Remarkable Service. Remarkable Support."
akk_prasad
15 Posts
Re: IIS logging at virtual directory or application level in IIS 7.5
Jun 28, 2012 07:42 PM|LINK
Thanks Jamie.