Logmixer -------- The purpose of the program is to take 2 log files and mix them together based on time into 1 log file. Example ------- Log 1: 2004-05-05 08:41:14 [login to view URL] - [login to view URL] GET / 2004-05-05 08:41:27 [login to view URL] - [login to view URL] GET /[login to view URL] 2004-05-05 08:42:00 [login to view URL] - [login to view URL] GET /[login to view URL] Log 2: 2004-05-05 08:41:12 [login to view URL] - [login to view URL] GET /[login to view URL] 2004-05-05 08:41:21 [login to view URL] - [login to view URL] GET /[login to view URL] 2004-05-05 08:41:24 [login to view URL] - [login to view URL] GET /[login to view URL] Output after logmixer: 2004-05-05 08:41:12 [login to view URL] - [login to view URL] GET /[login to view URL] 2004-05-05 08:41:14 [login to view URL] - [login to view URL] GET / 2004-05-05 08:41:21 [login to view URL] - [login to view URL] GET /[login to view URL] 2004-05-05 08:41:24 [login to view URL] - [login to view URL] GET /[login to view URL] 2004-05-05 08:41:27 [login to view URL] - [login to view URL] GET /[login to view URL] 2004-05-05 08:42:00 [login to view URL] - [login to view URL] GET /[login to view URL] We currently have 2 servers each generating logfiles, I will call them server1 and server2. They are in the same workgroup and running Windows 2003. All files are logged in d:\logfiles and the mixed logfiles should be saved on server1 in d:\output .
## Deliverables
We will schedule the program to run daily and the program should process all logfiles in d:\logfiles for each server except the logfile for the current date. After processing the origional log files from d:\logfiles should be deleted. The mixed logfile that are saved in d:\output should be in either zip og gz format. This should be done individually so each zip file only contains one log file. It shall be easy to change settings for example a ini file. File names: [login to view URL] The consists of a customer ID (dcskvlatctvvt92zevr722hsc_9m4n), a prefix (sdc) and a date (may_06_2004) seperated by a underscore Example: Input: d:\logfiles\[login to view URL] Output: d:\output\dcskvlatctvvt92zevr722hsc_9m4n\[login to view URL] Input: [login to view URL] Ouput: d:\output\dcsg4elv8svvt9qtu630b0her_4p9k\[login to view URL] Pseudo code: Get all file names from server1 and server2 for each file do if filedate not current day then read \\server1\logfiles\file read \\server2\logfiles\file Mix files Zip and output to \\server1\output\customer ID\date delete \\server1\logfiles\file delete \\server2\logfiles\file next file
## Platform
The program has to will run using Windows Scheduler and should run unattended - console program. It should be a single .exe file and should not need to be installed. It needs to run on Windows 200 server and Windows 2003 server.