Products | Versions |
---|---|
TIBCO Enterprise Message Service | - |
A python script is provided to back up EMS server log files so that the files are preserved before being removed by log rotation.
It is tested with python 3.7. python scan.py <log_name> <log_directory> <zip_directory> <scan_interval_in_sec> <log_max_count_in_tibemsd_conf> For example: python3 scan.py ems.log /opt/tibco/ems/8.6/samples/config /users/szou/downloads 5 10 It finds the biggest log number and then print max_count -1 files from the number. It tries not to include the log files in last zip file but overlapping is allowed. Example: log_442T450_20220919100905.zip log_450T458_20220919101035.zip