The SImA installation base directory contains a script for collecting the log files: get_logs.sh. The script generates a zip package which contains the Docker service logs from the running container stack, as well as some important config files.
How to use the script:
-
To generate a full log set containing the most recent logs:
$ ./get_logs.sh collect
The logs are outputted to sima_logs_latest.zip.
-
To request logs from a certain time period, from/to dates can be given as optional arguments (including timezone):
$ ./get_logs.sh collect --from yyyy-MM-ddTHH:mm:ss+HH:mm --to yyyy-MM-ddTHH:mm:ss+HH:mm
e.g.,
$ ./get_logs.sh collect --from 2021-05-18T11:11:26+03:00 --to 2021-05-18T11:11:56+03:00
Time is given according to ISO-8601 format. Syntax for UTC time: yyyy-MM-ddTHH:mm:ssZ
The logs are outputted to sima_logs_from-2021-05-18T11:11:26+03:00-to-2021-05-18T11:11:56+03:00.zip
-
You can also give either from or to time only, e.g.
$ ./get_logs.sh collect --to yyyy-MM-ddTHH:mm:ss+HH:mm
Comments
0 comments
Please sign in to leave a comment.