Get system log (structured)
ha_get_system_logRetrieve deduplicated Home Assistant system log entries grouped by problem, so you can filter by severity, logger, or text and spot recurring errors without scanning raw lines.
Instructions
Home Assistant's deduplicated error store: one record per distinct problem, with level, logger, source file:line, occurrence count and first/last seen. Prefer this over ha_get_error_log — 20 grouped issues instead of 200 raw lines. Filter by minimum level, logger name or free text. Full tracebacks are omitted by default (you still get the final exception line); set include_exception=true, usually narrowed with 'contains', to read a whole stack.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum entries to return, newest first (default 25). | |
| logger | No | Case-insensitive substring matched against the logger name only, e.g. 'hue'. | |
| contains | No | Case-insensitive substring matched against logger, message, source and traceback. | |
| min_level | No | Minimum severity to include (default 'warning'). | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. | |
| include_exception | No | Include full tracebacks (default false — large). |