> ## Documentation Index
> Fetch the complete documentation index at: https://inframan.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Logs

> Every container's output, collected automatically and searchable by application, service and version.

Inframan collects everything your containers write to **stdout** and **stderr**, from every pod on every node, and stores it in the infrastructure's own Loki. You don't add a logging library or an agent. Write to standard output and it's collected.

## Read logs

Open **Observability**, select **Applications**, then **Logs**. Each application and service also has its own **Logs** tab.

| Control | What it does |
| - | - |
| Application, service and **All versions** | Narrow to one service or one version |
| Time range | From the last 5 minutes to the last 7 days |
| **Search logs...** | Filters the lines already loaded |
| Level | **All levels**, **Error**, **Warning**, **Info** or **Debug**. See the note below. |
| **Refresh** | Loads the latest lines. The view also refreshes itself every 30 seconds. |

> [!NOTE]
>
> The level filter reads a numeric `level` field in JSON log lines, the way [Pino](https://getpino.io) writes them: 20 is debug, 30 info, 40 warning, 50 error. Lines in other formats show under **All levels**.

## Jump from a log line to its trace

When a JSON log line has a `trace_id` or `traceId` field, the line links straight to that request's **Trace Waterfall**. Most OpenTelemetry logging integrations add the field for you.

```json theme={null}
{"level":50,"time":1767225600000,"msg":"payment failed","trace_id":"4bf92f3577b34da6a3ce929d0e0e4736"}
```

See [Traces](https://inframan.mintlify.site/monitor/traces.md).

## Tips for useful logs

* Log one JSON object per line, with a numeric `level`.
* Include the `trace_id` whenever you have one.
* Don't log secrets. Anyone who can read the application's logs, including Viewers, can read them.

## How long logs are kept

72 hours on a non-production infrastructure. Logs are stored on a disk in your cluster, not sent to Cloud Logging or CloudWatch.

## Logs for an AI assistant

A connected assistant can fetch an application's or a service's logs, filter them with a regular expression, and look back up to 7 days, returning up to 1,000 lines at a time.

## Build and release logs

Logs from building and releasing, such as your `Dockerfile` output and pre-deploy steps, are on the release's page rather than here. See [Releases and activity](https://inframan.mintlify.site/monitor/releases-and-activity.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.