Container App logs
azure_containerapp_logsRetrieve recent Azure Container App logs from Log Analytics. Filter by console or system source, revision, or text to troubleshoot application failures and platform events.
Instructions
Reads recent Container App logs from the environment's Log Analytics workspace. source "console" is your containers' stdout/stderr; "system" is platform events: revision provisioning, image pulls, probe failures, crashes and scaling. Filter by revision or by text. Results are oldest first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | How many hours to look back (default 1, max 720). | |
| limit | No | Maximum lines (default 100). | |
| search | No | Only lines containing this text (case-insensitive). | |
| source | No | Which log to read (default console). | console |
| revision | No | Only this revision name. | |
| resourceId | Yes | Resource ID of a Microsoft.App/containerApps app. |