How to Merge IIS Log Files

Written by chris hoffman | 13/05/2017

Microsoft's Internet Information Services (IIS) Web server produces log files, which list information about Web server requests and file downloads, including their time, IP address, Web browser and more. Many utilities exist for graphically analysing the raw IIS log data, which can sometimes be split into multiple log files. If you need to merge IIS log files into a single log file, you can use Microsoft's LogParser utility. LogParser acts on log files using standard SQL database commands, allowing you to produce a single log from multiple log files.

Download and install Microsoft's LogParser utility (see Resources).

Click "Start," "All Programs," "Accessories" and "Command Prompt."

Type the following into the Command Prompt window:

cd "C:\Program Files\Logparser\"

Press "Enter."

Type the following into the Command Prompt window, replacing "C:\Logs\1.log" and "C:\Logs\2.log" with the paths of the logs you want to merge:

LogParser.exe -i:iisw3c "select * into merged.log from C:\Logs\1.log, C:\Logs\2.log" -o:w3c

Press "Enter."

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.