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
- Open Logs, select a stream and a time range, and run a query. Leave the query empty to inspect every log of the stream.
- Open the AI inspection view.
- Choose the AI model. Optionally describe What to attend to, such as the service to watch or an outcome to treat as expected.
- Select Start inspection.
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_urlto 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.