Container logs
The Platform Orchestrator provides access to the logs of running containers which are part of a Deployment. Use them to help debug your Application.
- From the Application overview, select the Environment within the Application where your container is running
- On the Status page, select the Workload that holds your container
- Select the desired Container
- The Container logs will be displayed. The content will update automatically with new log content
Execute this command:
humctl api get \
/orgs/${HUMANITEC_ORG}/apps/${HUMANITEC_APP}/envs/${HUMANITEC_ENV}/logs?workload_id=${WORKLOAD_ID}&container_id=${CONTAINER_ID}
where the following environment variables are set:
Variable | Example | Description |
---|---|---|
HUMANITEC_ORG |
my-org |
The name of your Humanitec Organization |
HUMANITEC_APP |
my-app |
The ID of your Application |
HUMANITEC_ENV |
my-env |
The ID of your Application Environment |
WORKLOAD_ID |
my-workload |
The ID of your Workload |
CONTAINER_ID |
my-container |
The ID of your Workload |
Quit the log display using Cmd+C or CTRL+C.