App Service logs
azure_appservice_logsRead recent app or platform log lines from Azure App Service or Function apps to diagnose runtime errors, crashes, and container events. Access live logs from Kudu without writing a query.
Instructions
Reads the most recent log lines of an App Service or Function app from its log files (Kudu). Linux: source "app" is the container stdout/stderr (your application output), "platform" is container start, stop and crash events. Windows: "app" is application logging (must be enabled), "platform" is the Windows event log (IIS and runtime errors). For logs older than the files on disk, use azure_logs_query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Maximum lines per instance (default 100). | |
| source | No | Which log to read (default app). | app |
| resourceId | Yes | Resource ID of a Microsoft.Web/sites app or sites/slots slot. |