IIS logging to the remote share

Teddy Brewski 0 Reputation points
2023-05-25T07:30:02.36+00:00

Hello,

Windows 2012 R2 (with all latest updates) configured to keep IIS logs on a remote CIFS share (\\nas\IIS). No issues with the logging, the file is rotated and everything is great.

Today I tried to add additional logging field (X-FORWARDED-FOR) and once click on Apply the logging stopped working. There is no file with _x created. Removing X-FORWARDED-FOR restores logging.

Changing the logging location to be on a local drive and enabling X-FORWARDED-FOR worked fine.

Anyone with the similar issue?

Internet Information Services
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,526 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,083 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 43,926 Reputation points
    2023-05-25T11:55:44.8866667+00:00

    Hello there,

    Starting with IIS 6.0, you can write log data to a remote share over a network using a full, Universal Naming Convention (UNC) path. For example, you can specify \<servername><LogFileFolder> as the storage directory for your log files, where servername represents the name of the remote server, and LogFiles represents the name of the directory where the log files are stored.

    Remote logging enables you to set up centralized log file storage and backup; however, it is slower than standard methods of logging. Although HTTP.sys, the kernel-mode driver in IIS 6.0, buffers 64 KB of log data before writing to the log file, https://learn.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms525284(v=vs.90)

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments