Log Inspector

Reads a log you give it and points at the lines that explain what went wrong.

Give Log Inspector a log file, or pipe one in, and it answers with a short summary, the lines that show the problem, likely causes, and safe next checks. It runs entirely on your computer, with a model you pull through Ollama. It reads only the input you pass it, never runs commands, and replaces obvious passwords, tokens and keys before the model sees them.

What it is for

  • Find the failing line in a service, cron or system log
  • Read journalctl or dmesg output on a machine without internet access
  • Get a second look at a log before opening an incident

A real run

Input:

Nov 30 03:00:01 backup-01 CRON[2211]: (root) CMD (/usr/local/bin/backup.sh)
Nov 30 03:00:02 backup-01 backup.sh[2212]: starting snapshot of /srv/data
Nov 30 03:00:02 backup-01 backup.sh[2212]: target /mnt/backup free=1.2G needed=4.8G
Nov 30 03:04:17 backup-01 backup.sh[2212]: copied 1.1G of 4.8G
Nov 30 03:05:40 backup-01 backup.sh[2212]: write /mnt/backup/data-20261130.tar: No space left on device
Nov 30 03:05:40 backup-01 backup.sh[2212]: ERROR snapshot failed, exit status 1
Nov 30 03:05:41 backup-01 CRON[2211]: (root) MAIL (mailed 312 bytes of output)
nexus hub run nexusrun/log-inspector -- --input ./backup.log
Summary: The backup process failed due to insufficient disk space on the target /mnt/backup.
Evidence:
- line 5: write /mnt/backup/data-20261130.tar: No space left on device
Likely causes:
- The target directory /mnt/backup does not have enough free space to store the backup data.
Next steps:
- Check the current free space on /mnt/backup.
- Increase the available disk space on /mnt/backup or adjust the backup process to use a different location with sufficient space.

line check: all 1 line reference(s) match backup.log

Run it

1. Get NexusRun and the model

Install NexusRun. Log Inspector runs Granite 3.1 2B Instruct Q4_K_M (1.6 GB); get it with Ollama. NexusRun uses it from Ollama's store without copying it, and runs the app only with the exact weights it was tested with.

ollama pull granite3.1-dense:2b

2. Install, test and run

install checks the app against the signed catalog before it unpacks anything. test runs the app's own acceptance tests on your computer.

nexus hub install nexusrun/log-inspector
nexus hub test nexusrun/log-inspector
nexus hub run nexusrun/log-inspector -- --input ./app.log

Once the model is pulled and the app installed, nothing it runs needs a network connection.

Or build it yourself

The app is a unit source: its nexus.yaml, prompt and tests (8.3 KB). Download it, check it, and build, test or run it like any unit of your own.

curl -LO https://nexusrun.dev/hub/src/nexusrun/log-inspector-0.1.0.tar.gz
echo "df03a056b825d62f984857acc4438bc2731a27d5cb0b68b66787f0ddd9cc3d10  log-inspector-0.1.0.tar.gz" | sha256sum -c
mkdir log-inspector && tar -xzf log-inspector-0.1.0.tar.gz -C log-inspector
nexus build log-inspector
nexus eval log-inspector
nexus run log-inspector --input ./app.log

Many machines

To ship agents to many machines, with tests on every host before it switches, see Fleet.

Limits

  • Reads up to 8 KiB of a log by default, keeping the end; raise it with --input-max-bytes
  • Likely causes are hypotheses from the log text, not a diagnosis

Releases

VersionStatusPublishedNotes
0.1.0published2026-12-03