Hi Jean,
This is regarding the sorting of logfiles using logresolvemerge.pl
My website has a load balancing system, which logs the records on different folders (each folder for a accelerator). Also my website maintains two servers(i.e., any request will sent to one of the server by the load balancing system)
For example:
Below the logfiles folder structure.
D:/server1/folder1/folder2/WWW/*.LOG
D:/server1/folder1/folder2/WWWDE/*.LOG
D:/server1/folder1/folder2/WWWIN/*.LOG
D:/server1/folder1/folder2/WWWUS/*.LOG
D:/server2/folder1/folder2/WWW/*.LOG
D:/server2/folder1/folder2/WWWDE/*.LOG
D:/server2/folder1/folder2/WWWIN/*.LOG
D:/server2/folder1/folder2/WWWUS/*.LOG
Please find, all of the folders will have same log file names for logs of that date.
Example, for the logs of 24th March,
WWW/240309-A.LOG
WWWDE/240309-A.LOG
WWWIN/240309-A.LOG
Problem is, i have to sort all the above logs into a single or may be two, one for each server.
For this, i'm currently using logresolvemerge.pl as below steps,
1. Run logresolvemerge.pl for server1/../WWW/*.*
2. Run logresolvemerge.pl for server1/../WWWDE/*.*
3. Run logresolvemerge.pl for server1/../WWWIN/*.*
4. Run logresolvemerge.pl for server1/../WWWUS/*.*
5. And then gain running the logresolvemerge.pl for the above four sorted logfile to generate a final sorted log file for server1.
6.The same way for server2.
7. Run logresolvemerge.pl for the two sorted logfiles of two servers, using pipe..
e.g. LogFile=”perl logresolvemerge.pl /path/to/server1final.LOG /path/to/server1final.LOG |”
The problem with the above process is, its really a cumbersome process to me to deal with manually. Also the time i should spend here is not encouraging.
Could you please help me if i can use logresolvemerge.pl in a better way, so that i do not run logresolvemerge.pl for each accelerator of each server.
May be by running the logresolvemerge.pl for all the log files of each server at one RUN/STROKE ? e.g., wil run a command and it will sort all the logs under D:/server1/ and give me a sorted log file for that server.
Thanks,
Sravan