How to get Container logs for a Self Hosted environment e.g. for 'Secrets Manager - SH' aka Conjur Enterprise deployments?
120
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 13:04 PM
Objective
How to get Container logs for a Self Hosted environment e.g. for 'Secrets Manager - SH' deployments?
Environment
12.6;12.7;13.0;13.2;13.1;13.3;13.4;13.5;13.6;13.7 Conjur Server
Procedure
Below are the commands which can be used to pull Docker/Podman logs :
- docker logs <Container Name>
- docker logs --since <timestamp when issues was faced> <container name> >& <name for log file>.log
below are some examples on how to use #2- docker logs --since 1m ConjurContainer >& DockerlogsforLast1Minute.log
- docker logs --since 1h ConjurContainer >& DockerlogsforLast1hour.log
- docker logs --since "2026-01-20T10:00:00" ConjurContainer >& Podmanlogsforfrom20Jan.log
Note : Above commands are valid for podman platform as well. One can use above commands for podman by replacing 'docker' with 'podman'.