How to Merge IIS Log Files

Updated July 20, 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."

Cite this Article A tool to create a citation to reference this article Cite this Article

About the Author

Chris Hoffman is a technology writer and all-around tech geek who writes for PC World, MakeUseOf, and How-To Geek. He's been using Windows since Windows 3.1 was released in 1992.