The log_collector.py
script enables you
collect the Docker log files from the containers in your
deployment. The script is included in the
openstack-kollacli
package, which is installed
on master nodes, and is located in
/usr/share/kolla/kollacli/tools
. You collect
the log files from all nodes, or from selected nodes, as follows:
log_collector.py
[
all
|
[host1
,
host2
,
]
] [
host3
...-h
|
--help
]
If you specify a host, the host must have been added to the deployment inventory using the kollacli host add command. If a host is not accessible, the script ignores the host and processes the next host in the list.
The script only collects logs from Docker containers whose image names start with "ol-openstack".
The script collects the logs files into a tar archive in
/tmp
and prints the name of the file to the
screen. The archive contains a directory for each specified
deployment node, and each directory contains the Docker log files
for the containers deployed on that node.
The script also runs the kollacli dump command, which retrieves the configuration files and logs, and includes the output of this command in the archive.