--- title: "Logs" description: "Search and filter your application logs." --- Miget automatically collects all output from your app's containers - anything written to stdout or stderr is captured, indexed, and available for search. ## Viewing Logs Open **Monitoring** from your app dashboard and navigate to the **Logs** dashboard. You'll see: - **Log Count** - a histogram showing log volume over time - **Log Stream** - the full log output, newest first ## Filtering Use the dropdowns at the top to narrow results: | Filter | Description | |--------|-------------| | **app** | Filter by application name | | **pod** | Filter by specific instance | | **Query** | Free-text search with regex support | ### Query Examples ```logql # Find all error logs {app="my-app"} |= "error" # Regex match {app="my-app"} |~ "timeout|connection refused" # Exclude health checks {app="my-app"} != "/health" # Filter by log level (if your app uses structured logging) {app="my-app"} | json | level="error" ``` ## Logs via API Query logs programmatically using the [Metrics API](/monitoring/metrics-api): ```bash curl -H "Authorization: Bearer $TOKEN" \ "https://metrics.miget.com/loki/api/v1/query_range?\ query={app=\"my-app\"}&limit=100" ``` ## Retention | Plan | Log Retention | Log Ingestion | |------|--------------|---------------| | Free | 3 days | 3 GB/month | | Pay as you grow | 7 days | 30 GB/month | When your workspace reaches its ingestion limit, log collection for your apps pauses until the start of the next calendar month (UTC). You'll receive an email notification at 80% and 100% usage. Reaching the limit only affects app logs: - **Metrics keep flowing.** Collection, dashboards, the Metrics API and autoscaling are not tied to the log limit. - **Managed service logs don't count.** Logs from managed PostgreSQL, MySQL and Valkey instances are not counted towards your ingestion limit and are not paused. They are rate-limited instead: 2 lines per second per instance, with bursts of up to 1,000 lines. Lines above that rate are dropped. Extra log ingestion is available on the Pay as you grow plan at 3 USD per 10 GB. Additional retention days can be added at 10 USD per 7 extra days.