Troubleshooting CloudPoint logging
You can retrieve the logs of a CloudPoint service from the /cloudpoint/logs/flexsnap.log file by running the following command:
# sudo cat /cloudpoint/logs/flexsnap.log | grep <flexsnap-service name>
Consider the following if you are upgrading from CloudPoint version 2.2.x:
You cannot retrieve the CloudPoint logs using Docker command (
# sudo docker exec flexsnap-coordinator flexsnap-log). If you run this command, you will see the following error message:flexsnap-log is deprecated. Retreive current logs from /cloudpoint/logs/flexsnap.log
You can retrieve all the logs from the MongoDB database to a file on disk by running the following command:
# sudo docker exec flexsnap-coordinator flexsnap-log --file /cloudpoint/logs/<previousversion_logs>.log
If the MongoDB database is taking up more disk space due to the logs, you can drop the database using the following command:
# sudo docker exec flexsnap-coordinator flexsnap-log --purge