Syn records who did what in the dashboard and every conversation between Syn and an AI model. Entries go to
Security Onion’s Elasticsearch, in daily indices logs-syn.YYYY.MM.DD (the UTC day of each entry’s
@timestamp; entries spooled while Elasticsearch was down still land in the day they happened). A retention rule can
therefore delete whole days by index name or age (pattern logs-syn.*). The single index logs-syn used before
the daily split is still read, so older entries stay visible until you delete it. Admins read them on More → Audit log; they are also
searchable in Kibana and Security Onion Hunt (the fields use Elastic Common Schema names).
Three kinds of entries, told apart by event.dataset:
syn.reviewAction (event.action) |
When |
|---|---|
review.correlation_pass |
One correlation-review pass of the background worker that decided links, labelled or reviewed events, or ended with a problem (idle passes are not logged). syn.review: status (ok / partial / waiting / error / crashed), links_decided, events_labelled, events_reviewed, reviewer_failures, decision_failures, decision_model, reviewer_model, error; event.start / event.end / event.duration. |
review.job_run |
Each finished review-job run (review.py): status (completed / failed), trigger, daily_run, reviewer_model, error. |
Shown on AI pipeline monitoring → Review log (counts, last problem per kind, Correlation review busy = summed
event.duration of all review.correlation_pass entries in the period ÷ the period, with the median and longest pass,
the entries of the last 1 h – 30 days; falls back to
the dashboard’s in-memory copy when Elasticsearch is unreachable).
syn.auditAction (event.action) |
When |
|---|---|
auth.login |
Every sign-in attempt. outcome: failure (HTTP 401/429) for wrong passwords and lockouts. user.name is the name that was typed. |
auth.logout |
Sign-out. |
page.view |
Each page the user opens (the browser reports the route, e.g. #/devices?ev=...). |
acks.check / acks.uncheck |
Checking an event off / restoring it. |
kb.event, kb.host (.add, .delete, .approve, .reject) |
📝 event notes and host notes, and approving User notes. |
aireview.* |
Confirming/rejecting AI correlation verdicts, Clear review queue / Clear event queue (aireview.clear-review, aireview.clear-queue). |
aireview.esquery |
Each Elasticsearch look-up the event reviewer ran (user Syn (event reviewer), category database): the structured query, hit count and error. Written by the app, not by a person. |
aireview.websearch |
Each web search or page read by the event reviewer (user Syn (event reviewer), category network), shown in the Audit log as Event reviewer: web search: the search text or URL, why, the event under review (target), result count, the result links (title + URL, up to 6), seconds, cached, error, model and purpose. These replaced the old Event reviewer web searches box on AI pipeline monitoring; the Audit log’s Web searches KPI and event reviewer web searches link filter to them. Gated by Send event reviewer events. |
llm.review-limits |
Changes on AI pipeline configuration → Review limits: link-type modes, time window, max links per event, verdict retention, event classification on/off, and suppress rules (IDS signature, segmentation, finding / alert). Removing a legacy alert mute rule is alerts.mutes. The entry’s parameters show the new values. |
research.request |
Send to research on an event. |
chat.new, chat.send, chat.history, chat.delete |
Ask AI: new chat, message, opening an old chat, deleting one (the AI conversation itself is a separate syn.llm entry). |
users.* |
Adding and deleting users, password resets, role changes, device assignment. Console changes (docker exec ... server.py add-user / set-role / set-password) are logged as user console. |
config.*, llm.config, llm.research, llm.providers.*, llm.esqueries, llm.websearch, llm.notes |
Integrations (Elasticsearch, UniFi, web search, audit key), Auto-close settings, review-job schedule, settings documents (including the event window), model choice (event reviewer, event research, chat), the review job’s categories, “Run now” and Pause (llm.review), Event research limits and its Elasticsearch / web switches (llm.research), adding / editing / testing / deleting AI providers, the event reviewer’s Elasticsearch look-up setting and max per event (llm.esqueries), the event reviewer’s web search setting (llm.websearch), notes per event (llm.notes). |
push.*, alerts.read, account.password |
Notification subscriptions and preferences, marking alerts read, changing your own password. |
ti.lookup |
Threat-intel lookups. |
audit.search / audit.open |
Reading the audit log itself (so admins’ reading is audited too). |
access.denied |
Any request refused with HTTP 403 (for example a User opening an admin page). |
The rule behind the table: every POST request is an entry (the action name is the API path plus the action
field of the request, e.g. /api/users + {"action": "add"} → users.add), plus the listed GETs and every 403.
Ordinary data loads (opening tables and charts) are covered by page.view and are not logged one by one.
Each user-action entry has: time, user, role, source IP (the real client IP when the dashboard is reached through the
Cloudflare tunnel), browser, HTTP method, path and status code, success/failure, the target (user name, event id,
note id, …) and the request parameters with secrets redacted.
syn.llm| Action | Who talks to the model | What is stored |
|---|---|---|
llm.chat |
Ask AI chat, for the signed-in user | The exact text sent to the model (including the context block of the page the 💬 was opened from), the full answer, the chat session id, the tools the model used, provider and model, tokens when reported, duration, status (completed, failed, cancelled, disconnected). |
llm.correlation-review |
The event reviewer, user Syn (event reviewer) |
System prompt, prompt (the anchor event, its known artifacts, the candidate links, and the host / user / artifact notes given as context), the model’s JSON answer with artifacts, model, tokens, seconds. With Elasticsearch look-ups on, one entry per round (the search results are in the next prompt). |
llm.event-classify |
The event reviewer when Classify events is on, same user | The event, its confirmed related events and notes, and the label (suspicious / benign / expected) with confidence and reason. |
llm.review-input |
The review job (review.py on the host), user Syn (review job) |
The work list of the newest snapshot (enrich.sh events). |
llm.review-copy |
The review job’s event reviewer | Earlier notes it decided to reuse for similar events (enrich.sh copy): the decisions with their reasons. |
llm.research-input |
Event research (research.py, started by Send to research), user Syn (event research) |
The event handed to the research model (enrich.sh events --only). |
llm.research-result |
Event research | Everything the model sent back: research notes, verdicts, correlation links (enrich.sh put). |
llm.research-hostnotes |
Event research | AI-written host notes it added, changed or deleted (enrich.sh kbput). |
Failed model calls are logged too, with outcome: failure and the error. Prompts and answers longer than 32,000
characters are cut (marked … [truncated, N chars]); system prompts at 12,000.
The review job (review.py, started by scheduler.py) and event research (research.py, started by Send to research)
run on the host, not inside the dashboard, so the audit log sees what goes in and what comes back (provider review job
or event research; entries written before the split say research job), not the internal tool calls. The full
conversations, tool calls included, are saved on the host under logs/review/ and logs/research/ (the newest 60
each), and tokens and estimated cost are on the AI pipeline pages.
On the Audit log page, Audit log storage has two checkboxes: Send event reviewer events (user Syn (event reviewer): llm.correlation-review, llm.event-classify and aireview.esquery) and Send researcher events (user Syn (event research): llm.research-input, -result, -hostnotes). The review job’s entries (user Syn (review job)) and the review log (user Syn (review log), syn.review) follow Send event reviewer events; while it is off, the Review log card shows only the entries the dashboard kept in memory since its last start. Each is independent and on by default; when off, those entries are dropped (not queued). Stored in the integrations settings section audit as send_reviewer / send_researcher; the status API counts them as skipped.
These switches are separate from the Elasticsearch look-up switches on AI pipeline configuration → Models, which decide whether the event reviewer (llm.esqueries) or event research (llm.research, es_search) may search Security Onion at all. Event research’s own searches are kept for the AI pipeline pages and as Kibana links on its notes, but are not individual audit entries; its prompts and results are.
password,
current, api_key, key, p256dh, auth, …) is replaced by [redacted] before the entry leaves the request.
This happens in audit.clean(), before anything is queued or written to disk.More → Audit log, admins only. Network defenders and Users don’t see the menu entry, and the API refuses them (that refusal is itself logged).
#/audit?kind=llm&range=7d&user=alex or #/audit?start=2026-10-18T13:00:00.000Z&end=2026-10-18T17:00:00.000Z), so a filtered view can be bookmarked or shared. browser ──► dashboard (server.py) ──► audit.action() ─┐
│ │ in-memory queue
├── Ask AI ────── chat.stream ──► audit.llm() ──┤ (never blocks a request)
├── corr_llm ────────────────────► audit.llm() ──┤
review.py ────► enrich.py / kb.py (docker exec) ► audit.llm() ─┤
▼
writer thread, a bulk request every ~2 s
├─ OK ──────────► Elasticsearch logs-syn
└─ ES down / no key ─► state/audit_spool.jsonl ─► sent when ES is back
_bulk API (create operations only).dashboard/state/audit_spool.jsonl (0600, fsynced) and is sent again, oldest first, as soon as it accepts writes:
es_rejected_execution, 503 unavailable_shards while a
daily index’s shard is still being allocated after a restart, cluster blocks…): only those entries are spooled
(counted as retried);docker stop / redeploy): the queue is spooled on SIGTERM._id = event.id, and a 409 (already stored by an attempt that
timed out on our side) counts as sent, so retries never duplicate entries.audit: spool full / disk low).dashboard/state/audit_rejected.jsonl (not resent) and don’t block the rest.enrich.py / kb.py run by the review job and event research, and the console commands) send their own entries
before they exit, and leave the spool to the dashboard so nothing is sent twice./api/audit (search and aggregations), /api/audit/doc (one entry),
/api/audit/status. The large text fields (prompts, answers) are left out of the list and loaded only when you open
an entry.One time, with an Elasticsearch account that can manage index templates and create API keys (Kibana → Dev Tools):
Index template: fixed mapping, dynamic: false, so prompts and answers are full-text searchable and the field
count can’t grow. The body is in audit_index_template.json.
PUT _index_template/syn-audit # index_patterns ["logs-syn", "logs-syn.*"], priority 900
{ ...contents of docs/audit_index_template.json... }
PUT logs-syn
API key for the dashboard: allowed only to add and read entries, never to change or delete them:
POST /_security/api_key
{"name": "syn-audit",
"role_descriptors": {"syn_audit": {"indices": [{"names": ["logs-syn"],
"privileges": ["create_doc", "read", "view_index_metadata"]}]}}}
Create it as a user. Elasticsearch refuses to create a key with privileges from another API key. Without
role_descriptors the key gets all of your own rights; check it with
GET _security/user/_has_privileges (with the key) and {"index": [{"names": ["logs-syn"], "privileges": ["delete"]}]},
which should answer false.
Give the key to the dashboard: paste the encoded value on More → Audit log → Change the audit key or index,
press Test, then Save. It is stored in the Syn database (integrations document; the DB file is 0600) under
audit. Alternatively set NETMON_AUDIT_ES_KEY in dashboard/.env and run ./deploy.sh. The Elasticsearch URL
is the one used for everything else (Configuration → Integrations, or es_url in the site settings).
To use another index, enter it in the same form (one concrete name, no wildcards or commas) and create the template and index for that name.
| Field | Meaning |
|---|---|
@timestamp |
When it happened (UTC). |
event.dataset |
syn.audit (user action) or syn.llm (AI conversation). |
event.module, event.kind |
Always netmon, event. |
event.action |
What happened, see the tables above. |
event.outcome |
success or failure. |
event.category, event.type |
ECS categories: authentication, web, iam, file, process; access, change, info. |
event.duration |
AI call duration in nanoseconds. |
event.id |
Unique id of the entry. |
user.name, user.roles |
Who; admin, defender or user. Background work is Syn (event reviewer), Syn (review job) or Syn (event research); console commands are console. |
source.ip, user_agent.original |
Client address and browser. |
http.request.method, http.response.status_code, url.path |
The request. |
message |
One-line summary (shown in the list). |
syn.target |
What the action was about (username=…, id=…, eid=…, route=…). |
syn.params |
Request parameters, secrets redacted (flattened type). |
gen_ai.system |
Provider: lmstudio (the built-in local OpenAI-compatible server; the id is historical), the id of an AI provider added on AI pipeline (api:<id>), review job or event research. |
gen_ai.request.model |
Model name. |
gen_ai.prompt, gen_ai.completion |
What Syn sent and what the model answered (full text, searchable). |
gen_ai.usage.input_tokens, gen_ai.usage.output_tokens |
Tokens when the provider reports them. |
syn.llm.purpose |
chat, correlation-review, review-input, review-copy, research-input, research-result, research-hostnotes. |
syn.llm.system_prompt |
The instructions given to the model. |
syn.llm.session_id, syn.llm.tools, syn.llm.status, syn.llm.error |
Chat session, tools used, how the turn ended, error text. |
Create a data view for logs-syn with time field @timestamp. Useful KQL queries:
event.action : "auth.login" and event.outcome : "failure" # failed sign-ins
event.outcome : "failure" and event.dataset : "syn.audit" # everything refused or failed
user.name : "alex" and not event.action : "page.view" # what one person changed
event.action : users.* # account and role changes
event.dataset : "syn.llm" and gen_ai.completion : "malicious" # AI answers that said "malicious"
event.action : "llm.chat" and gen_ai.prompt : *password* # chat messages mentioning passwords
Security Onion’s detection rules can alert on these too, for example on several failed auth.login entries from one
source.ip.
There is no automatic deletion yet: the index grows until you add a policy. Most entries come from the background event reviewer (about one per 3–30 seconds while it is working through new events, several thousand a day on a busy day). User actions are a few hundred a day. An entry with a prompt and answer is typically 2–10 KB.
To keep, for example, 90 days, delete old entries on a schedule with an account that can (the dashboard’s key can’t):
POST logs-syn/_delete_by_query
{"query": {"range": {"@timestamp": {"lt": "now-90d"}}}}
or move to a data stream with an ILM policy if you want rollover and automatic deletion.
| Symptom | Cause and fix |
|---|---|
| Storage box: not reachable … audit API key not configured | No key saved yet. See Setup. Entries are waiting locally. |
| HTTP 401 | The key is wrong, expired or was deleted. Create a new one and save it. |
| HTTP 403 … unauthorized … create_doc | The key lacks create_doc or read on the index (or the index name was changed). |
| N waiting grows | Elasticsearch is down or refusing writes. Container log: docker logs netmon-dashboard 2>&1 \| grep audit. Entries are sent automatically once it works again (also after 429 / shard-not-ready answers). Entries are dropped only if the spool passes 4 GB or less than 2 GB of disk is free (counted as dropped). |
| N rejected | A field didn’t fit the mapping. The storage box shows the Elasticsearch error; the entries are kept in state/audit_rejected.jsonl; check the template. |
| Page shows the server answered HTTP … without data | The dashboard or the Cloudflare tunnel answered with an error page instead of data. Check that the container is running. |
| No research-job entries | They appear when the review job runs (enrich.sh events / copy) or someone clicks Send to research (put / kbput), and only if Send researcher events is on. |
| No event reviewer entries | Send event reviewer events is off, or the event reviewer is idle (no undecided links). |
On startup the container log says audit log -> <url>/logs-syn (key set) or (key NOT set - spooling).
| File | Role |
|---|---|
dashboard/app/audit.py |
action() and llm() build entries; clean() redacts secrets; the writer thread, spool, search(), doc(), status(). |
dashboard/app/server.py |
do_POST / do_GET wrappers write one entry per request (audit_action_name, AUDIT_GET); the Ask AI handler writes the llm.chat entry; /api/audit* endpoints (admin only); console commands. |
dashboard/app/chat.py |
stream() fills the record of a chat turn (input, answer, tools, status). |
dashboard/app/corr_llm.py |
Wrap every model call (_complete, _ask) with an llm.* entry, also on errors; the event reviewer’s Elasticsearch look-ups write aireview.esquery. |
dashboard/app/enrich.py, kb.py |
Review job and event research input and results. |
integrations.py |
audit_key(), audit_index(); the audit section of the integrations document and its Test. |
dashboard/app/static/audit.js |
The More → Audit log page. app.js reports page views (auditView). |
docs/audit_index_template.json |
Index template (mapping). |
Since the daily split the dashboard writes to logs-syn.YYYY.MM.DD and (re)installs the index template
netmon-audit for logs-syn and logs-syn.* at start-up (needs manage_index_templates on the audit key; if it
lacks it, install docs/audit_index_template.json by hand - the status shows template: not updated). The daily
name uses a dot (logs-syn.2026.10.31), not a hyphen: logs-syn-<day> would match Security Onion’s logs-*-*
template and become a data stream, which also blocks the template update. With the dot no Security Onion template
matches, so the daily indices are plain indices with Syn’s fixed mapping. Delete old days with a rule on logs-syn.* (index age or the date in the name);
the audit key needs create_doc, create_index and read on logs-syn.*.