-
Notifications
You must be signed in to change notification settings - Fork 370
Steps to retrieve logs from the application services and keycloak
Manojvv edited this page Oct 30, 2017
·
4 revisions
For Application logs:
-
Command to get the logs if it has private key file.
ssh -i <path/to/key/file> <username>@<ip> 'sudo docker service logs --tail <no/of/lines> <service-name>' >> <service-name>_ouput.txt
-
Command to get the logs if it has password. Run the below command and enter the ssh password.
ssh <username>@<ip> 'sudo docker service logs --tail <no_of_lines> <service-name>' >> <service-name>_ouput.txt
For the Keycloak logs:
`ssh -i <path/to/key/file> <username>@<ip> 'sudo /opt/keycloak/standalone/log/server.log' >> keycloak_ouput.txt`
Variables:
username : ssh username of VM(docker_swarm_ master / keycloak).
ip : ip address of the instance(docker_swarm_ master / keycloak).
no_of_lines : Number of latest log lines required from the particular service.
service-name:
- player_player
- content_service_content_service
- actor-service
- learner-service