Skip to content
Skip to Content

Service logs

What a service's containers write, read live from your servers.

A service's logs stay on your servers: OpenPanel stores none of them. When you ask, each server's agent reads the newest lines of the service's containers there, and OpenPanel merges them by time. Each container keeps up to 30 MB of log on its server (three files of 10 MB), the oldest going first.

Read them

From the CLI, the last 100 lines of every replica ([0], [1], … is the replica):

openpanel logs web
openpanel logs web --tail 500
openpanel logs web --follow   # asks again every 2 seconds and prints the new lines

From the API, up to 1000 lines:

curl "https://openpanel.sh/api/v1/services/$SERVICE_ID/logs?tail=200" \
  -H "Authorization: Bearer $OPENPANEL_TOKEN"
{
  "data": [
    { "at": "2026-12-01T18:00:00.512Z", "serverId": "0193b7a0-…", "container": "op-0193c1d2-…-0", "replica": 0, "line": "GET / 200 3ms" }
  ],
  "unreachable": []
}

From an AI agent, the MCP tool is services_logs.

A server whose agent is not connected cannot be asked; its containers are listed in unreachable with the reason, and the other servers' lines still come. Anyone who can see the project can read its services' logs.

The console's Logs tab does not show them yet. While runtime logs are not set up on an OpenPanel (503), the CLI shows the current deployment's build and deploy logs instead.

On this page

Ask AI about this page

Was this helpful?