Log source onboarding
Rules
- Onboard for a purpose. Each source names the detections, investigations, or obligations that need it (a
detection-coverage-mappinggap, a rule's data source indetection-rule-authoring, a requirement inlogging-architecture) and the fields they need. Collect what the purpose needs, not everything. - Coverage is measured, not declared: assets sending, from ingestion evidence, against the in-scope assets in the declared inventory. A source onboarded on paper but silent is not telemetry.
- Write agent and collector configuration, decoders, parsers, pipelines, and tests in the working tree; test on a local or disposable instance. Installing or enrolling agents on hosts, opening ports, enabling cloud log sources, and deploying parsers to production are changes the orchestrator runs with the asset owner's approval.
- Never disable a source, narrow a filter, or drop security-relevant events to cut volume; that is the control owner's decision with options (N7 in
change-security-review). - Enrolment passwords and tokens, agent keys, and API keys are referenced by secret-store name (
secrets-management), never read, printed, or put in configuration files. - Samples are synthetic or masked before they enter the repository; check them with
sensitive-data-scan. - Every source is normalised to the platform's common schema, with the schema version recorded per parser.
Inventory versus coverage
| Source | ATT&CK data component (ID) | Log channel | In-scope assets (inventory reference) | Assets sending (evidence, window UTC) | Share | Required fields present | Parser (version) | Schema (version) | Lag p95 | Retention | Owner | Status |
|---|
Status: planned, pilot, rolling out, live, degraded, silent. In-scope assets come from the asset inventory or cloud-inventory; assets sending from distinct host or account identifiers seen in a bounded window. These rows feed the Telemetry table of detection-coverage-mapping column for column.
Collection
| Method | Use | Wazuh | Elastic or OpenSearch | Watch for |
|---|---|---|---|---|
| Host agent | Servers and endpoints: OS logs, files, FIM | Wazuh agent localfile and modules; events on 1514/TCP, enrolment on 1515/TCP (documentation.wazuh.com, Required ports, accessed 2026-11-28) | Elastic Agent integrations | Agent CPU, memory, disk, and buffer sizing measured in the pilot |
| Syslog forwarding | Network devices, appliances | Manager syslog on 514, disabled by default (same source) | Collector syslog input | RFC 3164 time format; transport loss over UDP |
| Cloud pull | Audit logs from cloud archives and APIs | Cloud modules | Cloud integrations | The cloud side is logging-architecture; reader identity read-only |
| Collector pipeline | Fan-in, buffering, routing, transformation | Forward to the manager or indexer | Logstash, Vector, OpenTelemetry Collector | Disk buffer sized for the longest expected SIEM outage |
Deploy in waves: pilot (one host per OS and role), then waves by criticality, each with verification (share sending, fields, lag), resource budget, rollback (stop or remove by the owner), and a change window. Wazuh agents must never be newer than the manager.
Parsers and golden tests
| Platform | Where | Test |
|---|---|---|
| Wazuh | Custom decoders in /var/ossec/etc/decoders/local_decoder.xml or separate files there; custom rule IDs 100000–120000; edits to default rules under /var/ossec/ruleset/rules are lost on upgrade; excluding a default decoder with <decoder_exclude> stops its upstream updates | /var/ossec/bin/wazuh-logtest (pre-decoding, decoding, rule filtering) or PUT /logtest on the server API (documentation.wazuh.com, accessed 2026-11-28) |
| Elasticsearch, OpenSearch | Ingest pipelines in the repository | POST _ingest/pipeline/<id>/_simulate?verbose=true with docs[]._source (elastic.co/docs, Simulate a pipeline API, accessed 2026-11-28) |
| Vector | Transforms in the collector configuration | vector test <config>; only transforms are unit-tested (vector.dev, accessed 2026-11-28) |
A golden test is an input sample file plus the expected normalised output; the diff after parsing must be empty, and it runs in CI (ci-cd-pipeline). Cases:
| Case | Examples |
|---|---|
| Positive | One sample per event type and per product version in scope |
| Negative | Unrelated lines from the same channel; malformed lines go to a parse-failure field, never silently dropped |
| Edge | Multi-line, truncated, oversized, non-UTF-8, missing optional fields, quoted separators, IPv6, year rollover, daylight-saving change |
| Privacy | Fields to drop, mask, or hash are absent or transformed in the output |
Normalisation
- One schema per platform: ECS 9.5.0 on Elastic ("This is the documentation of ECS version 9.5.0", elastic.co/docs/reference/ecs, accessed 2026-11-28); OCSF 1.10.0, released 2026-11-20, for OCSF-based lakes and tools (github.com/ocsf/ocsf-schema/releases and schema.ocsf.io, accessed 2026-11-28). Re-check versions at onboarding.
- Keep the source timestamp in
@timestamp(or OCSFtime); setevent.createdandevent.ingestedsosiem-operationscan measure lag. - Map to the field names the detection pipeline expects (the Sigma processing pipeline or platform form in
detection-rule-authoring); a renamed field breaks rules silently, so list every rule that reads a changed field. - Keep
event.original("Used to demonstrate log integrity", ECS) only where integrity or evidence needs it; it duplicates every personal field the parser masks.
Time
- Every source synchronises time; CIS Controls v8.1 safeguard 8.4 asks for at least two synchronised time sources (guidance; cisecurity.org, accessed 2026-11-28). Check with
timedatectlandchronyc trackingon a pilot host. - RFC 3164 timestamps are "Mmm dd hh:mm:ss" local time with no year and no time zone (rfc-editor.org/rfc/rfc3164); set the source zone in the parser and handle the year at rollover. Prefer RFC 5424, whose timestamp always carries "Z" or a numeric offset (rfc-editor.org/rfc/rfc5424, section 6.2.3), or JSON with ISO 8601 offsets.
- Store UTC. Record each source's zone in the inventory; reject or flag events more than a stated skew in the future.
File integrity monitoring
| Monitor | Exclude | Mode |
|---|---|---|
System binaries, configuration, authentication files and SSH authorized_keys, scheduled tasks and cron, services and startup items, web roots, Windows run keys | Logs, caches, temporary and spool directories, database files, package-manager caches | Scheduled by default; real time or who-data only where the threat model needs it |
Wazuh syscheck defaults: frequency 43200 s, Linux directories /etc,/usr/bin,/usr/sbin,/bin,/sbin, realtime and whodata off (real time works on directories only), report_changes off and limited to text files, file_limit 100000 (documentation.wazuh.com, syscheck reference, accessed 2026-11-28). Never enable report_changes on files that hold secrets or personal data; list them in nodiff so their content cannot reach alerts.
Personal data
- Minimise: collect only the personal data detection and investigation need (data minimisation, a principle of most data protection laws); the rules of each jurisdiction in scope come through
regulatory-mapping. Examples: GDPR Art. 5(1)(c), "adequate, relevant and limited to what is necessary" (EU); the CCPA, collection and retention "reasonably necessary and proportionate" (California); the LGPD necessity principle (Brazil); the DPDP Act 2023, consent limited to the data necessary for the specified purpose (India). Pseudonymised data is still personal data under most of these laws (data-retention). Sources, accessed 2026-11-28: gdpr-info.eu; cppa.ca.gov/regulations/pdf/ccpa_statute.pdf (Civil Code 1798.100(c)); planalto.gov.br (Lei 13.709/2018, Art. 6 III); meity.gov.in Gazette text of the DPDP Act (section 6(1)). - Drop at the source or first hop: authorization headers, cookies, session IDs, tokens in URLs, request bodies, form fields. Mask or hash only what an analyst needs to correlate (for example user IDs with a keyed hash held outside the SIEM).
- Elasticsearch
redactprocessor replaces Grok-pattern matches with a placeholder and supports only ECS patterns (elastic.co/docs, Redact processor, accessed 2026-11-28); test it with golden privacy cases. Documents that fail a pipeline can land unredacted in a failure store; restrict it. - New personal-data categories in a source go to the privacy owner through the orchestrator (
privacy-impact-assessment).
Health checks per source
| Check | Signal | Alert when |
|---|---|---|
| Heartbeat | Newest event time per source and per asset | Older than expected interval + lag target |
| Volume | Events per interval against a same-hours baseline | Outside the stated band |
| Parse failures | Decoder misses, pipeline errors, failure store count | Above the stated share |
| Field completeness | Share of events with each required field | Below target |
| Lag | event.ingested − @timestamp, p95 | Above the latency target |
| Agent state | Wazuh agent active or disconnected; collector buffer use | Disconnected or buffer above warning |
Route these alerts through the platform's self-monitoring in siem-operations.
Procedure
- Purpose. Detections, investigations, or obligations served; required fields; latency and retention targets with owners.
- Scope. In-scope assets from the inventory; source versions and formats.
- Samples. Masked samples per event type and version through the orchestrator.
- Design collection, parser, normalisation, minimisation, time handling, and FIM scope.
- Test golden cases on a disposable instance until every diff is empty.
- Plan the rollout in waves with verification and rollback; enrolment and deployment go to the orchestrator.
- Verify after each wave: share sending, required fields, lag; update the inventory row.
- Hand over the Telemetry rows to the detection engineer and the health checks to monitoring.
Output
The inventory-versus-coverage table, then per source: parser files with SHA-256, golden test results with tool versions, schema mapping and affected rules, FIM scope, minimisation decisions, health checks, and the rollout plan with verification and rollback.
Quality checklist
- The source has a stated purpose and required fields; nothing collected lacks one.
- Assets sending come from ingestion evidence against the inventory, with window and share.
- Golden tests cover positive, negative, edge, and privacy cases and pass on the platform form.
- Time zone and synchronisation are recorded; all stored times are UTC.
- No secret values or unneeded personal data reach the SIEM; samples are masked.
- Heartbeat, volume, parse-failure, completeness, and lag checks exist with alert routes.
Pitfalls
- Counting a source as covered because the agent is installed, while half the hosts never send.
- Parsing RFC 3164 syslog without a time zone, so events sit hours off and fall outside rule lookbacks.
- Renaming a normalised field without telling the detection engineer, silently blinding rules that read it.