A script merging the logfiles from several processes in a given time range is now available: /virgoDev/Automation/userapps/mergeLogs.py
For each line, the name of the process which generated that log is added at the end of the line between brackets.
Example: 2017-01-15-11h37m24-UTC>WARNING-One arm has unlocked! Going to DOWN state [CARM_DARM_LOCK]
The syntax to use it is the following:
python mergeLogs.py <time start> <time stop> <output file> <name of the first process> <name of the second process> etc.
The
a GPS timestamp (10 digit-long),
the format used in the logfiles (e.g. 2017-01-15-11h39m37)
or a long string concatenating the date and time: YYYYMMDDHHmmss (e.g. 20170115113937)
Example (corresponding to the analysis done by Bas by hand):
python mergeLogs.py 1168515438 1168515498 mergeLogs.log LSC_Acl CARM_DARM_LOCK NARM_LOCK WARM_LOCK
produces the following output:
Reading and decoding arguments...
time_start = 1168515438 (20170115113700) -> time_stop = 1168515498 (20170115113800)
output_file = mergeLogs.log
List of processes: ['LSC_Acl', 'CARM_DARM_LOCK', 'NARM_LOCK', 'WARM_LOCK']
Extracting relevant information from logfiles...
Process LSC_Acl, log_directory = /virgoLog/VirgoOnline/LSC_Acl
Extracting lines from file /virgoLog/VirgoOnline/LSC_Acl/LSC_Acl_2017-01-14-18h45m49-UTC.log
Process CARM_DARM_LOCK, log_directory = /virgoLog/Automation/CARM_DARM_LOCK
Extracting lines from file /virgoLog/Automation/CARM_DARM_LOCK/CARM_DARM_LOCK_2017-01-12-11h01m38-UTC.log
Process NARM_LOCK, log_directory = /virgoLog/Automation/NARM_LOCK
Extracting lines from file /virgoLog/Automation/NARM_LOCK/NARM_LOCK_2017-01-07-07h43m48-UTC.log
Process WARM_LOCK, log_directory = /virgoLog/Automation/WARM_LOCK
Extracting lines from file /virgoLog/Automation/WARM_LOCK/WARM_LOCK_2017-01-07-07h43m49-UTC.log
Done! Time used to merge the logfiles: 6839 ms. 386 lines written in output file mergeLogs.log.