Communityコーディング&開発github.com

log-source-onboarding

Onboard a log source into a SIEM — required fields, agent rollout, parsers proven by golden-sample tests, schema normalisation, and health checks. Use when a system must send logs, a detection lacks fields, or a source is silent or mis-parsed.

log-source-onboarding とは?

log-source-onboarding is a Claude Code agent skill that onboard a log source into a SIEM — required fields, agent rollout, parsers proven by golden-sample tests, schema normalisation, and health checks. Use when a system must send logs, a detection lacks fields, or a source is silent or mis-parsed.

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ifundeasy/claude-crew/tree/HEAD/skills/log-source-onboarding

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Log source onboarding

Rules

  • Onboard for a purpose. Each source names the detections, investigations, or obligations that need it (a detection-coverage-mapping gap, a rule's data source in detection-rule-authoring, a requirement in logging-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

SourceATT&CK data component (ID)Log channelIn-scope assets (inventory reference)Assets sending (evidence, window UTC)ShareRequired fields presentParser (version)Schema (version)Lag p95RetentionOwnerStatus

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

MethodUseWazuhElastic or OpenSearchWatch for
Host agentServers and endpoints: OS logs, files, FIMWazuh agent localfile and modules; events on 1514/TCP, enrolment on 1515/TCP (documentation.wazuh.com, Required ports, accessed 2026-11-28)Elastic Agent integrationsAgent CPU, memory, disk, and buffer sizing measured in the pilot
Syslog forwardingNetwork devices, appliancesManager syslog on 514, disabled by default (same source)Collector syslog inputRFC 3164 time format; transport loss over UDP
Cloud pullAudit logs from cloud archives and APIsCloud modulesCloud integrationsThe cloud side is logging-architecture; reader identity read-only
Collector pipelineFan-in, buffering, routing, transformationForward to the manager or indexerLogstash, Vector, OpenTelemetry CollectorDisk 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

PlatformWhereTest
WazuhCustom 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, OpenSearchIngest pipelines in the repositoryPOST _ingest/pipeline/<id>/_simulate?verbose=true with docs[]._source (elastic.co/docs, Simulate a pipeline API, accessed 2026-11-28)
VectorTransforms in the collector configurationvector 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:

CaseExamples
PositiveOne sample per event type and per product version in scope
NegativeUnrelated lines from the same channel; malformed lines go to a parse-failure field, never silently dropped
EdgeMulti-line, truncated, oversized, non-UTF-8, missing optional fields, quoted separators, IPv6, year rollover, daylight-saving change
PrivacyFields 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 OCSF time); set event.created and event.ingested so siem-operations can 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 timedatectl and chronyc tracking on 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

MonitorExcludeMode
System binaries, configuration, authentication files and SSH authorized_keys, scheduled tasks and cron, services and startup items, web roots, Windows run keysLogs, caches, temporary and spool directories, database files, package-manager cachesScheduled 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 redact processor 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

CheckSignalAlert when
HeartbeatNewest event time per source and per assetOlder than expected interval + lag target
VolumeEvents per interval against a same-hours baselineOutside the stated band
Parse failuresDecoder misses, pipeline errors, failure store countAbove the stated share
Field completenessShare of events with each required fieldBelow target
Lagevent.ingested − @timestamp, p95Above the latency target
Agent stateWazuh agent active or disconnected; collector buffer useDisconnected or buffer above warning

Route these alerts through the platform's self-monitoring in siem-operations.

Procedure

  1. Purpose. Detections, investigations, or obligations served; required fields; latency and retention targets with owners.
  2. Scope. In-scope assets from the inventory; source versions and formats.
  3. Samples. Masked samples per event type and version through the orchestrator.
  4. Design collection, parser, normalisation, minimisation, time handling, and FIM scope.
  5. Test golden cases on a disposable instance until every diff is empty.
  6. Plan the rollout in waves with verification and rollback; enrolment and deployment go to the orchestrator.
  7. Verify after each wave: share sending, required fields, lag; update the inventory row.
  8. 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.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

関連スキル