Get project logs
Retrieves aggregated log entries from all services within a Docker Compose project.
Retrieves aggregated log entries from all services within a Docker Compose project.
This endpoint returns recent log output from each container, organized by service name with timestamps. The response contains the last 300 log entries across all services.
Use this for debugging, monitoring application behavior, and troubleshooting issues across your entire project stack.
API Token authentication
Virtual Machine ID
1268054Docker Compose project name using alphanumeric characters, dashes, and underscores only
my-docker-projectSuccess response
Array of VPS.V1.DockerManager.LogsResource
Name of the Docker Compose service that generated these log entries
webUnauthenticated response
Validation error response
Error response
GET /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/logs HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"service": "web",
"entries": [
{
"timestamp": "2024-01-15T10:30:45.123456Z",
"line": "127.0.0.1 - - [15/Jan/2024:10:30:45 +0000] \"GET / HTTP/1.1\" 200 612"
}
]
}
]Last updated
Was this helpful?