---
title: "Get project logs"
method: GET
path: "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/logs"
tags: ["VPS: Docker Manager"]
---

# Get project logs

`GET /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/logs`

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.

## Path parameters

- `virtualMachineId` integer, required
- `projectName` string, required

## Response `200`

Success response

- VPSV1DockerManagerLogsResource[] — Array of [`VPS.V1.DockerManager.LogsResource`](#model/vpsv1dockermanagerlogsresource)
  - `service` string — Name of the Docker Compose service that generated these log entries
  - `entries` VPSV1DockerManagerLogEntryResource[] — Array of [`VPS.V1.DockerManager.LogEntryResource`](#model/vpsv1dockermanagerlogentryresource)
    - `timestamp` string — ISO 8601 formatted timestamp when the log entry was generated by the container
    - `line` string — Raw log message content as output by the application inside the container

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/53ccee45e5eb/schema)
