Windows IIS logs are text-based logs collected by creating a Local or Remote File Source.
If you have not yet configured logging on your Windows server, or if you would like to confirm settings for your current logging, follow these instructions. After confirming that log files are being created properly, you can set up a Source to collect them.
Enable logging on your IIS Server
- Open the Sever Manager Console.
- Select Roles.
- Select Web Server (IIS).
- Select the host you wish to collect IIS logs from.
- In the right-hand pane, select Logging.
- For the option One log file per select Site.
- For the Log File Format, choose W3C so that you can select the fields to log.
- Click Select Fields, and then select the checkboxes for:
- Server Port
- Protocol Status
- Protocol Substatus
- Click OK to save your configuration.
Confirm that the log files are being created
- Open a command-line window and change directories to C:\inetpub\Logs\LogFiles. This is the same path you will enter when you configure the Source to collect these files.
- Under the \W3SVC1 directory, you should see one or more files with a .log extension. If the file is present, you can collect it.