get_core_logs
Retrieve Home Assistant core logs from the Supervisor journal with filters for level, integration, pattern, and time range. Fallback to error log. Enable DEBUG via set_log_level before reading debug logs.
Instructions
Get Home Assistant core logs (all levels) from the Supervisor journal, with fallback to error log.
Args: limit: Max records (1-200, default: 50) level: Filter: "DEBUG", "INFO", "WARNING", or "ERROR" integration: Filter by integration (e.g. "mqtt", "llmvision") pattern: Case-insensitive substring match on message since_minutes: Only logs from last N minutes lines: Journal lines to request (default: 500) truncate_traces: Truncate stacktraces to 3 lines (default: True)
Use set_log_level to enable DEBUG before reading debug logs; reset to WARNING after.
Examples: get_core_logs(level="DEBUG", integration="llmvision") get_core_logs(pattern="timeout", since_minutes=60)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| level | No | ||
| integration | No | ||
| pattern | No | ||
| since_minutes | No | ||
| lines | No | ||
| truncate_traces | No |