Analyze application logs
anypoint_get_app_logs_for_analysisFetch live-tail logs for a Mule application and return analysis-ready data with normalized lines and counts by priority, logger, and instance for troubleshooting.
Instructions
Fetch live-tail logs for a Mule application and return an analysis-ready payload: normalized lines plus counts by priority, logger and instance. Prefer this over anypoint_list_app_logs when diagnosing a problem.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum log entries, default 100, max 500. | |
| orgId | No | Business group id. Defaults to ANYPOINT_ORG_ID, or the credentials' own organization. | |
| offset | No | Application Manager log offset, default 0. | |
| specId | No | Specific Application Manager deployment spec/config id. | |
| target | No | Log source. Defaults to auto, which tries Application Manager then CloudHub. | |
| appName | Yes | Deployment/application name as shown in Runtime Manager. | |
| endTime | No | Application Manager time filter, ISO 8601. | |
| errorOnly | No | Only return ERROR and FATAL lines. | |
| startTime | No | Application Manager time filter, ISO 8601. | |
| descending | No | Return latest first, default true. | |
| includeRaw | No | Include the raw Anypoint API objects alongside the normalized fields. | |
| searchTerms | No | Case-insensitive filters matched against timestamp, priority, message, logger, thread or instance. | |
| deploymentId | No | Use when the app name is ambiguous or already known. | |
| environmentId | No | Environment id. Use instead of environmentName. | |
| includeErrors | No | Include failed target errors when target is auto. | |
| environmentName | No | Environment name, e.g. 'Production'. Resolved to an id, must match exactly one. |