Skip to main content
A log inspection has Mole Agent read the logs of a period and write a report: whether something is wrong, what it is, and which logs show it. An inspection only reads logs. It changes no data and no configuration.

Before starting

  • Enable at least one AI model under Mole Agent → Settings → Models & reasoning. See Mole Agent. Without an enabled model, saved inspections stay listed and cannot run.
  • Check the permissions:
Mole Agent reads the same inspections and reports in a chat with list_log_inspections, list_log_inspection_runs, and get_log_inspection_run, under the same permissions. run_log_inspection runs one now: it needs inspections.manage and, by default, a confirmation in the chat. See Tool catalog and execution.

Inspect on demand

  1. Open Logs, select a stream and a time range, and run a query. Leave the query empty to inspect every log of the stream.
  2. Open the AI inspection view.
  3. Choose the AI model. Optionally describe What to attend to, such as the service to watch or an outcome to treat as expected.
  4. Select Start inspection.
The inspection sends query results of these logs to the chosen model. Select Continue in Mole Agent to ask follow-up questions about the report.

Save a scheduled inspection

Open Logs → AI inspection, then select either entry:
  • Save as scheduled inspection opens the form with the current stream, query, requirements, and model. The inspection can be saved even when the query matches nothing now.
  • Scheduled inspections opens the list, where New inspection starts an empty form.
A daily or weekly time is read in the time zone of the interface at the time of creation: the time zone of the personal preferences, or the time zone of the browser when none is set. The form names the time zone, and a later edit does not change it. Notifications and reports use the interface language at the time of creation. An organization keeps at most 20 scheduled inspections by default.

How a run works

Reports and verdicts

Select an inspection in the list to open its reports. Past runs are on the left. The selected run shows the report, the period covered, the duration, the tools called, the tokens used, and the notifications sent. Open the logs of this period opens Logs on the same stream, query, and period. A scheduled report carries a verdict: A run that did not finish has no report. The record shows its state and the reason: Reports are kept for 30 days by default and removed hourly after that. Deleting an inspection deletes all its reports.

Notifications

  • When the verdict of a report meets When to notify, each channel receives one notification: the title states the verdict and the name of the inspection, and the body holds the stream, the period, the verdict, the summary of the report, and a link to the report. The link needs http.external_url to be set.
  • A failed run notifies once, when the run before it was not a failure. Repeated failures notify only the first time, whatever When to notify says.
  • Without a channel, nothing is sent and the reports are still kept.
  • Every notification appears under Settings → Notify → Delivery log with the stage Direct. A direct delivery does not pass through notification policies and cannot be retried from the delivery log.
  • A notification connector that a scheduled inspection uses cannot be deleted.

Instance settings

Nodes with the alert role run scheduled inspections and check every 15 seconds for a due or queued run. With several alert nodes, each run is picked up by one node only. See Role-based deployment. Two metrics follow the runs:

API

The endpoints are under /api/v1/logs/inspections:

Logs

Write the query that an inspection reads.

Notification channels

Connect the channels that receive the notifications.
Last modified on October 26, 2026