How to get logs
You can deploy Akto on multiple platforms like AWS, k8s etc. Please follow the below guide to find logs on your respective platform.
AWS using Auto scaling group
If you've deployed Akto on
AWS
using an auto scaling group, log in to AWS console and go toEC2 dashboard
.
Go to
Auto scaling group
and find theakto-dashboard
auto scaling group.
Find the associated EC2 instance in
Instance management
tab and SSH inside that instance. To SSH inside the instance, you can refer to this AWS guide.
Login as the root user using
sudo su -
and rundocker ps
to find the running containers.
You can find the logs for any container using the following command
docker logs <container-id> --tail 100
. Since there can be many logs, we are using--tail 100
, you can increase this number for older logs or add-f
flag for running logs.
Using helm charts in kubernetes
Connect to your kubernetes cluster
Check your deployments for an
akto
deployment usingkubectl get deployments -n <namespace>
. Make sure the namespace is correct.
You can get the pods associated with this deployment using
kubectl get pods -n staging
.
Pick the pod you'd like to view the logs for and run the following command
kubectl logs <pod-name> -n <namespace> --tail 10
. Since there can be a good number of logs, using tail is recommended. You can also use-f
flag for running logs.
Local deploy using docker
If you've deployed locally using docker, run a
docker ps
to check the running containers.
Run
docker logs <container-id> --tail 100
. Since there can be many logs, we are using--tail 100
, you can increase this number for older logs or add-f
flag for running logs.
Last updated