Reference for log_archive script
The reference explains advanced options of the log_archive.sh script used to create the archive out of aggregated logs. Also, see Archive logs on log aggregation server.
Script options
-c <component>specify component name of desired logs.<INSTALL_DIR>/logs/<SERVER_GROUP>/<hostname>/<component>/<date>/filename.log
-d <date>specify date of desired logs.<INSTALL_DIR>/logs/<SERVER_GROUP>/<hostname>/<component>/<date>/filename.log
Define the date you need logs for in the following format:
YYYY-mm-dd, for example,2018-10-25.You can use regex, for example, get all logs on October 2018.
$ /opt/workfusion/tools/log_archiver.sh -d 2018-10-*-g <SERVER_GROUP>specifyserver_roleof desired logs.<INSTALL_DIR>/logs/<SERVER_GROUP>/<hostname>/<component>/<date>/filename.log
Available server groups: dbappocrbivds_mastervds_slaverpa
-h <hostname>specify hostname of desired logs.<INSTALL_DIR>/logs/<SERVER_GROUP>/<hostname>/<component>/<date>/filename.log
Place the hostname here if you need to get logs from a concrete host. You can use regular expressions, for example, get logs from multiple servers vds-agent-20.example.com, vds-agent-21.example.com.
/opt/workfusion/tools/log_archiver.sh -h vds-agent-2[0-1].example.com