Wazuh Alert Fields (alerts.json): rule.level, rule.id, agent, data
Published
One JSON alert per log event a Wazuh rule matched at or above the alert level: the rule (ID, level 0–15, description, groups, compliance and MITRE ATT&CK tags), the agent that sent the event, the original line (full_log), how it was decoded, the fields the decoder extracted (data) and where the event came from.
Official documentation: Wazuh: Rules syntax (levels, groups, mitre, compliance) · Wazuh: Rules classification (what each level means)
Sample record
Numbered lines are the fields in the table.
From the LogTriage parser test corpus — synthetic data, no real hosts or users.
Field reference
| Field | Type | Meaning | Why it matters for security |
|---|---|---|---|
| 1timestampe.g. 2024-01-15T14:32:01.234+0000 | date-time | When the manager generated the alert. The event's own time is inside full_log (predecoder.timestamp). | Use the log's own time for timelines when agents queue events during network outages. |
| 2rule. | number 0-15 | The rule's level, 0 (ignored) to 15. Wazuh's classification: 3 successful events, 5 user-generated errors, 10 multiple user-generated errors, 12 high-importance events, 15 severe attacks. | Alerts are written from level 3 by default; triage 10 and above first. |
| 3rule. | string | The ID of the rule that matched, from Wazuh's ruleset (0–99999) or local rules (100000–120000). | Look the ID up in the ruleset to see exactly what matched — 40112 fires on a success after failures from the same source. |
| 4rule. | string | The rule's description. | Readable summary for tickets; not unique across rules. |
| 5rule. | list of strings | Category groups of the rule and its file — syslog, sshd, authentication_failed, attack, syscheck, rootcheck… | Filter on groups such as authentication_failures, attack and syscheck rather than long lists of rule IDs. |
| 6rule. | number | How many times this rule has fired since the analysis engine started. | A counter, not a per-source rate; use it only as a rough sign of volume. |
| 7rule. | list of strings | The MITRE ATT&CK technique IDs the rule declares, with tactic and technique names beside them. | Map alerts onto ATT&CK, keeping in mind that the tags describe what the rule is about, not proof the technique succeeded. |
| 8rule. | list of strings | PCI DSS requirements the rule relates to; gdpr, hipaa, nist_800_53, tsc and gpg13 work the same way. | Useful for audit evidence, not for triage. |
| 9agent. | string | The agent (monitored host) that sent the event; agent.id 000 is the manager itself. | Group by agent to see which host is affected. |
| 10agent. | IP address | The agent's address as registered with the manager. | This is the monitored host, not the attacker — the remote address is in data.srcip. |
| 11ide.g. 1705329121.12345 | string | The alert ID: the time in seconds and the position in the alerts log. | Quote it when referring to one alert. |
| 12full_loge.g. Failed password for root from 185.220.101.42 port 54108 ssh2 | string | The original log line or event text the rule matched. | Always read it — the decoder may not extract everything that matters. |
| 13decoder. | string | The decoder that parsed the event (sshd, sudo, web-accesslog, syscheck_new_entry…); decoder.parent is its parent decoder. | Tells you which log source the alert came from when location is ambiguous. |
| 14data. | IP address | The source address the decoder extracted from the event. | The remote party to block or investigate; Wazuh's active response uses this field. |
| 15data. | string | The target account the decoder extracted (the user logging in, or the user sudo ran as); data.srcuser is the account that acted. | Logins as root from outside addresses are the alert to read first. |
| data. | string | For web access logs, the requested URL; data.protocol holds the method and data.id the status code. | Paired with data.id 200, an attack request the server answered successfully. |
| 17locatione.g. /var/log/auth.log | string | Where the event came from: a log file on the agent, or a module such as syscheck or rootcheck. | Separates log-based alerts from file integrity and rootcheck findings. |
Have one of your own records? Paste it into the log line explainer and each field is explained from this table, with times, codes and addresses decoded — in your browser.
What it records
Wazuh agents send log lines, file integrity changes, rootcheck results and other module output to the manager, which decodes each event and runs it through the ruleset. When a rule at or above the alert level matches, the manager writes an alert to alerts.json: the rule (as defined in the rules syntax — ID, level, description, groups, MITRE and compliance tags), the agent and manager, the original event in full_log, the predecoder and decoder results, the extracted fields in data, and the event’s location. File integrity alerts add a syscheck object with the path and the hashes, sizes and owners before and after.
The alert is only as good as the rule. Read full_log alongside the description, and remember that correlation rules (frequency, same_source_ip, if_matched_sid) describe a pattern across events: the one alert you see stands for several log lines.
The malicious sample shows failed SSH passwords for root and admin from one outside address, Wazuh’s brute-force correlation (5763), then the same address logging in as root with a password — rule 40112, level 12 — followed by a rootcheck finding of a hidden file under /dev and a SQL injection request a web server answered with 200 (31106).
Where to get it
- Manager files.
/var/ossec/logs/alerts/alerts.json(current day) and/var/ossec/logs/alerts/<year>/<Mon>/ossec-alerts-<dd>.json.gz. - Indexer. Dashboard → Discover on
wazuh-alerts-*, exportable as CSV or through the indexer’s search API. - Integrations. The integrator forwards alerts above a level to Slack, PagerDuty or a SIEM; syslog output sends them in JSON.
# Alerts at level 10 or higher, by rule and source address
jq -r 'select(.rule.level >= 10) | [.rule.id, .rule.description, (.data.srcip // "-")] | @tsv' /var/ossec/logs/alerts/alerts.json | sort | uniq -c | sort -rn
Parsing pitfalls
- Optional objects.
data,predecoder,syscheckandrule.mitreappear only when relevant. - Strings for numbers.
rule.id, ports and status codes are strings;rule.levelis a number. - Two times.
timestampis the manager’s alert time; the event’s time is in the log line. - Manager time zone.
timestampcarries the manager’s UTC offset (+0000here). - Compliance as arrays.
pci_dss,gdpr,hipaa,nist_800_53andtscsit besidegroupsinsiderule. - Local rules. IDs from 100000 are site-specific; their meaning lives in the site’s
local_rules.xml.
Detection ideas
- Guessing that worked: rule 40112, or any authentication_success after authentication_failures from the same data.srcip.
- Host integrity: syscheck changes to
/etc, binaries and web roots, and rootcheck findings. - Successful web attacks: rule 31106 and other
attackgroup alerts with status 200. - Privilege use: sudo to root by unexpected accounts (5402) and first-time sudo users (5403).
- High levels by agent: a host producing several level 10+ alerts in an hour.
The free browser analyzer reads Wazuh alerts.json and runs these checks locally.
Sending Wazuh to an LLM
One megabyte of this format is about 504,694 tokens on current Claude models and 340,781 on GPT models, measured with the models' own tokenizers — so a gigabyte sent raw to Claude Sonnet 5.5 costs about $1,009 in input tokens alone (prices of 2026-10-24). Estimate your own volume →
Frequently Asked Questions
- What do Wazuh rule levels mean?
- Levels run from 0 to 15. Level 0 rules never alert, and by default only level 3 and above reach alerts.json. Wazuh's classification describes 3 as successful or authorized events, 5 as user-generated errors, 10 as multiple user-generated errors, 12 as high-importance events and 15 as severe attacks; most correlation rules such as brute force sit at 10 to 12.
- Where is the attacker IP in a Wazuh alert?
- In data.srcip, when the decoder extracted one. agent.ip is the monitored host that sent the log, and full_log holds the original text. Alerts from modules such as syscheck and rootcheck have no source address at all, because they describe the host, not a connection.
- Where does Wazuh store alerts?
- On the manager, in /var/ossec/logs/alerts/alerts.json (one JSON object per line) and alerts.log, rotated daily into dated folders. Filebeat ships alerts.json to the Wazuh indexer, where they appear in wazuh-alerts-* indices and the dashboard.
- What is the difference between rule 5760, 5763 and 40112?
- In Wazuh's ruleset, 5760 (level 5) is one failed SSH password. 5763 (level 10) is the correlation rule: eight 5760 events from the same source within 120 seconds. 40112 (level 12) fires when an authentication success follows authentication failures from the same source within four minutes — the case where guessing may have worked.
Analyze a Wazuh file in your browser
The free analyzer detects this format, parses every field above and flags attack patterns — the file never leaves your machine. For threat-intel enrichment and an AI-written incident report, run it through LogTriage.
Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing
How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]