← All project entries

AI & systems / Running · still refining

Local AI for the morning report.

My local AI log review has two time budgets: finish the overnight job within 45 minutes, and give me a morning report I can actually read. The latest addition is a separate report on demand over a configurable lookback window.

Entry published · Updated · Matt Curran

Project period: 2026 · ongoing

Inside one of my desktop PC builds.
From my PC-build archive. The report setup uses an RTX 3090 PC for local inference.
  1. 01Home + WorkSynology log exports
  2. 02CoordinatorImport · redact · group · filter
  3. 03Local OllamaReview bounded evidence
  4. 04Daily digestPrivate viewer · optional email

The hardware and coordinator

I built this system to give me a useful morning read across my home and office networks. An RTX 3090 PC runs Ollama, while a separate Linux coordinator collects the logs, stores them, and builds the reports. Report history stays available when the GPU machine is offline.

My current model is qwen3.6:27b. The reusable package makes the model and server address configurable and includes a smaller example model for getting started.

The nightly run

Devices at both sites send logs to Synology Log Center. An exporter reads the stored databases into bounded snapshots. The coordinator retrieves and verifies those exports, imports them into SQLite, and keeps Home and Work separate throughout the report.

The report window closes at 3:30 a.m. Exports run at 3:40, the report builds at 4:00, and optional email delivery follows at 5:00. The schedule uses America/New_York and accounts for daylight-saving changes.

The optional power controls can shut down the AI PC between 4:00 and 6:00 a.m. after the run stops and its saved report is verified. A November 11 repair lets a verified saved partial report qualify even when an AI batch failed; the errors remain visible. An unavailable model at preflight, an active build, an invalid report, or an unsafe Windows session state still blocks shutdown. Each stage needs its own check: a powered-on PC does not prove Ollama started, and an emailed report does not prove AI review happened.

Grouping repeated events

A busy device can generate thousands of copies of the same message. Before AI review, the grouping pass combines recognized event families while retaining counts, timestamps, sources, and representative examples. Flagged groups from both sites receive priority.

The grouping tests check that differences in severity, endpoints, ports, paths, and commands survive the process. The source includes the event_rollups module, backlog tests, and an audit that can run independently of the model.

AI review and coverage

Ollama reviews bounded batches of those groups. Its response must match a structured schema, and the code checks returned event IDs against the evidence it supplied. I review the suggested checks and handle any repairs.

Each build has a 45-minute limit and, since November 14, a budget of up to 7,500 groups per site. Within that overall budget, the pipeline reserves up to 90 seconds for the opening briefing and 60 seconds for finalization. Coverage counts show how much evidence reached AI review. Missing data, incomplete review, and model outages remain visible; a failed build can trigger an explicit failure email.

“All groups reviewed” means the groups available to that build after collection, grouping, filtering and selection. It does not prove that every device event was collected or that the model found every problem. That distinction matters when export limits or a selection cap have already narrowed the input.

November 1: 44 minutes, and less than half reviewed

The first hard lesson was that a time limit is only useful if the report tells me what did not fit. On November 1, the build ran for 44 minutes 3 seconds, with 42 minutes 37 seconds spent on AI analysis, and reviewed just 2,060 of 4,775 groups—about 43%. At that morning’s rate, a complete review would have taken roughly 100 minutes. Raising the cap alone would have left a bigger unfinished queue.

Repeated events were already being grouped, but PBX messages accounted for 1,424 of the 2,060 reviewed groups. Traceback fragments could become separate alarming findings, and the model could read a logged firewall command as a failure without evidence that it failed. The 497 findings were not 497 independent incidents.

I tightened the review format, shortened routine answers, added bounded retries in smaller batches, and improved the grouping of specific event families. Counts, timestamps, examples and meaningful differences still had to survive. A replay reviewed the 3,902 groups saved in that report in 20 minutes 8 seconds, but did not include the 873 groups excluded by the old selection cap. A subsequent fresh build reviewed all 4,092 groups available to it in 21 minutes 18 seconds, with no AI errors.

Measured runs, not a speed guarantee
RunAI coverageObserved runtime
November 1 · initial2,060 / 4,775 groups (43%)44m 03s
November 1 · fresh build after changes4,092 / 4,092 available groups21m 18s
November 21,997 / 1,997 available groups10m 59s
November 152,543 / 2,543 available groupsAbout 25 minutes

Collection, startup, delivery, shutdown: separate problems

A fast model cannot review logs that never arrive. After network changes, the November 7 report reviewed none of its 39 eligible groups: the Home NAS address was stale, Work collection timed out, and Ollama was unreachable. Repairing the collector restored imports from both sites. Export row and time limits still showed how a troubleshooting log flood could crowd out other sources; those gaps need to remain visible.

On November 13, the pipeline scanned 71,355 stored records but reviewed none of its 4,097 groups because Ollama was unavailable before analysis began. Windows had booted at 3:30 a.m., but its startup task returned an error. A manual start and a later task restart restored the service. The original failure was not captured, so the startup root cause—and why the PC remained on that morning—was still unconfirmed.

Delivery and shutdown have had their own detours. On November 2, AI review finished in about 11 minutes, but DNS/firewall trouble delayed email acceptance until later that morning. Removing unnecessary Windows automatic sign-in addressed a separate shutdown-guard obstacle; a reboot confirmed Ollama could run before anyone signed in. The later partial-report completion repair keeps a failed AI batch from automatically stranding the PC, while retaining the checks for an unavailable model, active work and user sessions. I am treating each fix as a specific repair, not proof that every unattended night will succeed.

November 14: enough coverage, fewer things to read

The old 4,000-group-per-site cap left 188 Work groups unreviewed on November 14 even though collection succeeded. I raised that cap to 7,500 while keeping the 45-minute overall budget. Refreshing the software and briefing did not retroactively review those 188 groups or resend the email. A cap or deadline needs to be reported as limited coverage; a collection or service failure needs its own explanation.

The other time budget is mine. I wanted fewer than 100 findings to work through where sensible, without losing the evidence. Narrow grouping of Home Assistant connection failures and recurring Plex/Jellyfin findings turned one Home review’s 373 entries into 71 expandable summaries. The member events and individual Ignore actions remain available. That reduces reading overhead; it does not suppress the underlying evidence or reduce AI coverage.

The opening AI briefing now calls out new and urgent findings, points back to the supporting events, and includes relevant official references. Device discovery, verified aliases and configurable retirement keep the inventory useful as the network changes. The installed defaults include retirement after 10 days without NAS-received logs, following a successful fresh collection, with a toggle and adjustable threshold, plus a seven-day view of device changes. Consolidating verified aliases reduced one inventory from 58 identities to 50 entries.

November 15: the slow stage was no longer AI review

The November 15 build reviewed all 2,543 groups available to it in about 25 minutes, comfortably within the 45-minute budget. Yet the dashboard still said “limited review.” The warnings came from inventory processing and publication, not from skipped AI batches.

Inventory processing across more than 1.6 million retained records was optimized and measured at 13.6 seconds. Publishing needed 64 seconds against a 60-second timeout; that stage now has a three-minute allowance. The dashboard label was corrected to “pipeline warnings” so a publishing problem does not masquerade as incomplete AI review.

The original saved report retains the warning it recorded, and the full nightly build was not rerun just to make that history look cleaner. These repairs address the measured bottlenecks; the next scheduled run still matters. The aim is a useful report with honest coverage and predictable runtime, not an endlessly expanding overnight job.

The hourly change-detection update is now installed and verified. An unchanged live check took 0.92 seconds, reused 17 reports and rewrote zero files; all 31 regression programs passed. That removes unnecessary repeat work while accepting a clear tradeoff: saved status can be up to an hour behind.

Run a report when I need one

The next useful addition is being able to ask for a fresh report at any time, instead of waiting for tomorrow’s digest. The new Run report control defaults to the last 24 hours, or lets me choose a whole-number lookback from 1 to 168 hours. The end time is fixed when I click Run, so the window does not drift while the job is queued or working.

Once requested, the workflow handles fresh log exports from both sites, wakes the AI PC if needed, collects and reviews the evidence, and saves a separate report. That makes it useful for checking the hours around a change or reviewing a longer period after troubleshooting. It is a one-off run with an automatic workflow, rather than a new recurring schedule or an arbitrary pair of start and end dates.

The custom report does not replace the saved morning digest and does not send an email. A failed fresh-export check stops the run instead of silently substituting old exports. The selected window is a request to review the available retained evidence in that period, not a guarantee that every device kept or supplied every event.

The same coverage limits still apply: up to 7,500 groups per site and a 45-minute build budget, plus the time needed for fresh exports and waking the server. A longer window can still produce a partial review, which remains visible. Duplicate requests and overlap with the scheduled build are blocked.

As of this update, the controls and supporting tests are implemented, and fresh-export installation and live verification are underway. A successful end-to-end manual report has not yet been confirmed. That status is separate from the already verified nightly review and hourly dashboard refresh.

The dashboard

Home and Work summaries show findings needing attention, record counts, and reviewed groups. A timeline tracks wake readiness, exports, collection, AI review, and email acceptance. Expandable tables expose source coverage, and dated links provide up to 30 days of report history.

The publisher verifies report identity and checksums before regenerating HTML from saved data. Missing or unverifiable reports are marked unavailable. As of November 15, it checks status hourly and rebuilds pages only when data, status or rendering changes. Opening the page reads that saved state, so a status change may take up to an hour to appear.

Detailed progress tracking begins with the first run after installation. Older reports keep the information captured when they were built.

Ignore an issue, without losing the logs

A device temporarily out of service can produce the same error every night. I added an Ignore button beside reported issues, a Suppressed issues page to see the matching groups, and a Filters page to inspect or delete each rule. The default is "Until I remove it," with optional 24-hour, 7-day and 30-day durations and a short reason.

Each rule matches a specific recurring log group within one site and source, including the device, program, reported severity and normalized message. The confirmation shows the scope, including any fields combined by a grouping rule. Matching groups are excluded before the next AI review, while suppression counts and coverage warnings remain visible.

The original logs stay in place. Deleting a filter makes matching messages eligible for future reports again; it does not rewrite an already-built report or a delivered email. The controls use a private web page alongside the existing dashboard and dated history.

The feature is implemented in the source release and covered by offline tests. The controls are installed on my running coordinator; a November 11 read-only check confirmed that the issue and device pages load. That check did not change filters or retirement settings. The public examples below contain synthetic data and have disabled form buttons.

Data and delivery

Collection and inference run on the private network. Credential-pattern redaction runs before records enter the database and again when reports are produced. Pattern matching can miss sensitive details, so raw exports and cached files still need restricted access.

The private viewer works on its own. Enabling Gmail delivery sends the finished digest through Google. The public dashboard and report examples below use synthetic events.

December 1 follow-up on the review queue

I replayed a saved run of 99,184 log records. The changes brought the queue from 10,264 groups to 3,284, a reduction of about 68%. All the original records and every group flagged by the existing severity and keyword rules were retained. The numbers describe this replay. They give me a baseline for the next few unattended runs.

The source update also preserves older exact-match filters and gives explicit SSH authentication events priority during review. There is an optional retry for a live SQLite snapshot that hits its deadline. The retry uses the same cutoff, and a second timeout leaves the report marked partial.

December 1: correcting timestamps and filtering successful pings

I piloted two small syslog changes on one VM. First, I sent timezone-aware timestamps. The NAS stored the new test event with matching event and receipt times. The comparison event sent with the old format was five hours off.

Second, I filtered only the exact message for a successful QEMU guest-agent health ping from NAS forwarding. I issued three test pings and found all three in the VM’s local journal. The forwarded feed still received a real guest command and its result, plus test records for SSH attempts and failures, warnings, and certificate events. The pilot verifies the filtering behavior. I still need a complete post-change nightly window to measure the drop in log volume.

Where it stands

The system is installed on my coordinator. The recent changes have passed offline regression checks and targeted checks on the running system, including the hourly timer and unchanged-page behavior. The next unattended nightly run will test the full sequence again. Search, source-volume charts, investigation notes and automatic browser polling remain on my list.

The MIT-licensed source is on GitHub, with installation instructions, example settings, tests, and optional power management. The download below is a December 1 snapshot of the public repository, including the grouping and collection changes described here.

Back to the journal ↗

A GOOD QUESTION IS A GOOD START

Got a weird one?
I'm listening.