For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get project logs

Retrieves aggregated log entries from all services within a Docker Compose project.

Get project logs

get

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.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
virtualMachineIdintegerRequired

Virtual Machine ID

Example: 1268054
projectNamestring · min: 3 · max: 64Required

Docker Compose project name using alphanumeric characters, dashes, and underscores only

Example: my-docker-project
Responses
200

Success response

application/json
servicestringOptional

Name of the Docker Compose service that generated these log entries

Example: web
get/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/logs
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?