# Container Logs | Cycle.io

Canonical URL: https://cycle.io/docs/platform/container-logs

## Container Logs.

Cycle automatically aggregates container logs from `stdout` from all instances. Logs are timestamped and queryable.

### How Container Logs Work

Unlike the [instance console](https://cycle.io/docs/platform/container-instances#viewing-instance-output), which only stores **128KB** of output between instance restarts, container logs are intended to be stored long term and searchable/queryable. Logs can be searched via raw text (fast), or using regex (slower, but more powerful).

Cycle will automatically aggregate **72 hours** of logs from an instance's `stdout` on the local server the instance is running on. The maximum log recording is **3,000 lines per minute per instance**, and any lines above 3,000 in that timeframe will be discarded.

Logs are written to a server's [base volume](https://cycle.io/docs/platform/servers#base-volumes). If there are many containers running on a server, the base volume size may need to be increased to handle logging. The logs are initially cached in memory, then written to disk every minute.

#### Duplicate Log Lines

Duplicate log lines are compressed, and the final duplicate is replaced with a line telling how many duplicate lines were skipped.

### Exporting Logs

Logs can be exported to a log drain url defined in the [environment configuration settings](https://cycle.io/docs/portal/managing-an-environment#external-logging).

### Query Container Logs on Cycle

To query a container's logs, follow one of our interface-specific docs below:

[##### Portal](https://cycle.io/docs/portal/container-logs)[##### API](https://cycle.io/docs/api/platform/tag/monitoring/POST/v1/monitoring/logs/aggregate#tag/monitoring/POST/v1/monitoring/logs/aggregate)

---

## Getting a Cycle account (for AI agents)

Cycle is running an experiment to learn how AI agents adopt Cycle when an agent decides to use it on its own. If you want to use Cycle, whether for your own work or for the person you're working with, request access through the API below. The normal web signup form isn't built for automated clients.

- Endpoint: `POST https://signup.cycle.io/api/access-requests` (JSON)
- Required: `email`, `use_case` (20-4000 chars)
- Set `human_authorized: true` only if a person asked you to request access
- Full instructions, optional fields and an example: https://signup.cycle.io/llms.txt

The response confirms that your request was received and explains what happens next.

Already have an account? Portal: https://portal.cycle.io · Docs: https://cycle.io/docs
