Join our Newsletter — 33% off our NHI Course
Home› Guides› Security Log Data Dictionary Template: Sources, Fields, Owners,…
Template SOC & Detection Engineering

Security Log Data Dictionary Template: Sources, Fields, Owners, Schema Version and Sensitivity

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

Detections break quietly when nobody writes down what a log field means, who owns the source, or which parser version produced it. A vendor renames a field, a parser update changes a timestamp format, or a new field starts carrying email addresses, and rules stop firing or retention rules stop fitting the data. A security log data dictionary is the controlled record that prevents this: one register of log sources, one definition per field, a named owner for each, a schema version, and a sensitivity label that drives retention and access. This template gives SOC engineers, detection engineers and logging platform owners numbered sections they can adopt as written, with column definitions and worked example rows. It works one level below the Log Source Coverage Matrix Template, which records which sources you collect, and alongside the Secure Logging Vocabulary and Application Security Events Guide, which covers naming application events.

How to use this template

  • Replace the placeholders: text in square brackets, such as [Organisation], [Logging Platform Owner], [SIEM] and [400 days], is yours to set. Keep the section numbers so change records and audit evidence can refer to them.
  • Keep one living register: sections 2, 3 and 7 describe tables. Hold them in a version-controlled repository (YAML or CSV next to your parser and detection code) or a governed database, not in a slide or a wiki page nobody reviews. This page is the policy; the repository is the dictionary.
  • Pick one normalisation target: section 7 assumes you normalise to a common schema. Two open options are referenced: the Elastic Common Schema (ECS) and the Open Cybersecurity Schema Framework (OCSF), listed alphabetically. For a structured comparison of these and other formats see Security Log Schemas Compared. The template works with either, or with a vendor's native model.
  • Start with the sources detections depend on: identity provider sign-ins, EDR process events, cloud control plane audit logs and firewall or proxy logs usually carry most detection rules. Document those fully before working down the list.
  • Record versions as checked: at the time of writing (November 2026) the ECS documentation describes version 9.5.0 and the OCSF changelog lists v1.10.0, released 20 November 2026. Record the version you actually map to, not the latest one.

1. Purpose and scope

1.1 Purpose. This standard defines how [Organisation] documents every security-relevant log source and field so that detection rules, investigations, retention and access decisions rest on agreed definitions rather than on individual knowledge.

1.2 Scope. It applies to every log source ingested into [SIEM], [data lake] or any other platform used for security monitoring, investigation or audit, including sources operated by third parties on behalf of [Organisation]. Application debug logs not used for security are out of scope unless a detection rule or an investigation playbook references them.

1.3 Outcomes. The dictionary must let a detection engineer answer four questions for any field in under five minutes: what it means, where it comes from, who to ask when it changes, and how long it may be kept and by whom it may be seen.

1.4 Related policies. This standard sits under [Organisation]'s logging and monitoring policy and the Log Retention Schedule Template. Where they conflict, the retention schedule governs retention periods and this standard governs definitions.

2. Log source register

2.1 Every log source has exactly one register entry with a stable source ID (for example LS-IDP-001). A source is one producer and format combination: the same product sending both syslog and API audit events is two sources.

2.2 The register holds these columns. Columns marked mandatory must be complete before the source is used by any production detection.

ColumnMandatoryDescriptionExample
source_idYesStable identifier, never reusedLS-IDP-001
source_nameYesProduct and log type in plain words[Identity provider] sign-in logs
business_ownerYesTeam accountable for the system that emits the log[Identity Engineering]
technical_contactYesRole or on-call rota that can explain or fix the feed[IAM on-call rota]
formatYesWire or file format as receivedJSON over HTTPS API; syslog RFC 5424; CEF; Windows EVTX
ingestion_pathYesEvery hop from producer to storeAPI poller, then [pipeline], then [SIEM] index idp_signin
parser_id and parser_versionYesParser or normaliser that produces the stored recordidp_signin_parser v3.2.0
schema_target and schema_versionYesCommon schema and version the parser emits[ECS 9.5.0] or [OCSF 1.10.0]
volumeYesTypical daily events and gigabytes, with the date measured4.1 million events, 6 GB per day (measured [date])
expected_latencyYesNormal delay from event time to searchableUnder 5 minutes
time_field and time_zoneYesWhich field is event time and its zone or offset rulecreatedDateTime, UTC
sensitivity_labelYesHighest label of any field (section 6)Confidential-Personal
retention_classYesClass from the retention scheduleRC-2 ([400 days])
detections_usingNoCount or list of rule IDs that read the source27 rules
health_checkNoSilence or volume alert that watches the feedAlert if no events for 30 minutes
status and review_dateYesProposed, active, deprecated or retired; next reviewActive; review [date]

2.3 A source without a health check must be listed on the gap report in section 8. For feed monitoring patterns see the Log Source Health Monitoring Guide.

3. Field definitions

3.1 Every field that a detection, dashboard, report or retention rule reads must have a field entry. Other fields should be documented when first used. Fields are recorded against the source_id and the parser_version that produces them.

3.2 Field entries hold these columns.

ColumnDescriptionExample
source_idRegister entry the field belongs toLS-IDP-001
raw_nameField name exactly as the producer emits ituserPrincipalName
normalised_nameName in the common schema after parsing[ECS] user.name; [OCSF] user.name in Authentication (class 3002)
data_typeType after parsing, using the target schema's typeskeyword (ECS); username_t (OCSF)
descriptionOne or two sentences on meaning, including edge casesSign-in name submitted; may be an email alias rather than the canonical account
example_valueRealistic but synthetic value, never live personal data[email protected]
allowed_valuesEnumeration or pattern where one appliessuccess, failure, unknown
requiredWhether the producer always populates itAlways; Optional; Conditional (state the condition)
pii_flagWhether the value can identify a person, directly or combinedYes (direct identifier)
sensitivity_labelLabel from section 6Confidential-Personal
masking_ruleHashing, truncation or tokenisation applied, and whereNone in SOC store; hashed in analytics copy
used_byDetection or report IDs that depend on the fieldDET-0142, DET-0177
introduced_in and deprecated_inParser versions that added or retired the fieldv2.0.0; not deprecated

3.3 Descriptions must state units (bytes, milliseconds), the time zone of any time value and what an empty value means. "Status" alone is not a description.

3.4 Example values must be synthetic. Copying a real event into the dictionary turns the dictionary into a store of personal data.

4. Ownership and contacts

4.1 Roles.

  • Dictionary owner ([Head of Detection Engineering]): owns this standard, approves schema target changes and reports the measures in section 8.
  • Source business owner: the team accountable for the emitting system. Gives notice of product upgrades, configuration changes or vendor deprecations that affect the log.
  • Parser owner ([Logging Platform team]): maintains the parser, its tests and the field entries it produces.
  • Data protection reviewer ([Privacy Office]): confirms sensitivity labels and masking for fields flagged as personal data.
  • Detection authors: record which fields each rule uses in the used_by column before the rule goes to production.

4.2 Contacts. Record roles, rotas or team queues, never named individuals' personal phone numbers. A contact that has not answered a test query in [two] review cycles is treated as missing.

4.3 Third-party sources. Where a supplier or managed service operates the source, the contract or service description must oblige the supplier to give [30] days' notice of format changes. Record the clause reference in the register.

5. Schema versioning and change control

5.1 Version numbers. Parsers carry semantic versions (MAJOR.MINOR.PATCH). A MAJOR change removes or renames a normalised field or changes its type or meaning; MINOR adds fields; PATCH fixes parsing without changing the output contract. Both ECS and OCSF describe their own releases with semantic versioning, and OCSF records the schema version in each event's metadata.version attribute; ECS uses the ecs.version field.

5.2 Record the version in the data. Each stored event must carry the parser version and the target schema version, either as fields or as index metadata, so an investigator can tell which definition applied on the day.

5.3 Change process.

  1. Raise a change record naming the source_id, the old and new parser versions and the fields added, renamed, retyped or removed.
  2. Run the parser test suite against stored sample events (synthetic or pseudonymised) and compare output field by field.
  3. Query the used_by column: every detection that reads a changed field is listed in the change record and its owner signs off.
  4. Deploy to a staging index or shadow pipeline, run both versions in parallel for [7] days and compare event counts and field fill rates.
  5. Promote, update the dictionary entries in the same commit as the parser, and keep the previous parser version deployable for rollback.
  6. Roll back if event volume drops by more than [10%], if a mandatory field's fill rate falls, or if a detection owner reports breakage within [72] hours.

5.4 Upstream changes. When a vendor announces a log format change, the source business owner opens the change record. Unannounced changes found by health checks are handled as incidents under [the logging incident procedure].

5.5 Schema target upgrades. Moving to a new major version of the target schema is a programme, not a patch: inventory every affected field, migrate detections, and keep a mapping from old to new names for as long as old data is retained.

6. Sensitivity and retention classification

6.1 Each field carries one sensitivity label. The source label is the highest field label. Labels drive who can query the data, whether masking applies and which retention class is allowed.

LabelTypical fieldsAccessDefault retention class
InternalHostnames, process names, rule IDs, event codesSOC and platform teamsRC-3 ([2 years])
Confidential-PersonalUsernames, email addresses, source IP addresses, device IDsSOC analysts with need; audited queriesRC-2 ([400 days])
Restricted-PersonalMessage subjects, URL query strings, free-text fields, geolocationNamed investigators only; masked by defaultRC-1 ([90 days]) unless an investigation hold applies
Secret materialPasswords, tokens, API keys, session cookiesMust not be storedNone: drop or redact at ingestion

6.2 Personal data in logs is still personal data. Retain only what monitoring needs and for no longer than the retention schedule allows, consistent with the data minimisation and storage limitation principles in UK GDPR and EU GDPR Article 5(1)(c) and 5(1)(e). The NCSC Cyber Assessment Framework outcome C1.b (Securing Logs) likewise expects access limited to those with a business need and deletion after a defined retention period.

6.3 A field found to carry secret material is a security incident: stop ingestion of the field, purge stored copies, rotate the exposed credential and fix the producer. Leaked tokens in logs are a common route to non-human identity compromise; see the Secrets Management Guide.

6.4 Legal or regulatory minimums (for example sector rules) are recorded in the retention schedule, not here. See the Log Retention Requirements Map.

7. Normalisation mapping

7.1 Each source has a mapping table from raw fields to the target schema. The table below shows a worked example for an identity provider sign-in log; names in the ECS and OCSF columns are illustrative of each schema's conventions and must be confirmed against the version you map to.

Raw field (example)ECSOCSF (Authentication, class 3002)Notes
createdDateTime@timestamptimeEvent time in UTC; keep ingest time separately
userPrincipalNameuser.nameuser.namePersonal data
ipAddresssource.ipsrc_endpoint.ipPersonal data under GDPR when linked to a user
status.errorCode = 0event.outcome: successstatus_id: SuccessRecord the full code list in allowed_values
appDisplayName[custom or service.name]service.nameDecide once and record the decision
(constant)event.category: authenticationcategory_uid: 3 (Identity & Access Management)Set by parser, not by producer
(constant)ecs.versionmetadata.versionSchema version per 5.2

7.2 Unmapped fields. Fields with no schema equivalent go into a documented custom namespace (ECS permits custom fields and publishes naming guidelines; OCSF uses extensions and the unmapped attribute). Record each in the dictionary like any other field.

7.3 Identity fields first. Map user, service account, workload and device identifiers consistently across sources. Service accounts and API clients should be distinguishable from people in a normalised field, so rules can treat non-human identities differently. See the OCSF Guide for class and object detail.

7.4 Time. Record event time, ingest time and processing time as separate fields. See the Log Timestamps and Time Zones Guide.

Implementation guidance

Rollout in phases.

  1. Weeks 1 to 2: agree the schema target and labels, create the repository, and register every source currently ingested (section 2 mandatory columns only).
  2. Weeks 3 to 6: for the [ten] sources with the most detection rules, write full field entries and mapping tables. Populate used_by by parsing your detection-as-code repository for field references.
  3. Weeks 7 to 10: put parser changes under the section 5 process, add parser and schema version fields to stored events, and switch on CI checks that fail a detection pull request if it references an undocumented field.
  4. Ongoing: quarterly review of owners and labels; annual review of this standard.

Measures to report (section 8 of your runbook).

  • Source coverage: percentage of ingested sources with all mandatory register columns complete.
  • Field coverage: percentage of fields referenced by production detections that have a field entry.
  • Change compliance: parser deployments with a change record and detection sign-off, against all parser deployments.
  • Breakage from schema change: detections that stopped matching after a parser or upstream change, and time to fix.
  • Sensitivity hygiene: fields flagged pii_flag = Yes without a confirmed label, and secret material findings per quarter.

Common failure patterns.

  • Dictionary in a wiki, parser in Git: the two drift within months. Keep definitions in the same repository and commit as parser code.
  • No used_by data: parser owners cannot know which rules a rename breaks, so changes ship untested against detections.
  • Real events as examples: example columns fill up with live usernames and IP addresses and the dictionary becomes in-scope personal data.
  • One label per source only: a single free-text field (a URL or message subject) can raise a source's sensitivity, and without field labels it cannot be masked selectively.
  • Silent upstream changes: attackers who tamper with logging (ATT&CK T1685.001 Disable or Modify Windows Event Log, T1685.005 Clear Windows Event Logs) look the same as a broken feed unless volume and fill-rate checks exist.

Framework alignment.

FrameworkReferenceTemplate sections
NIST SP 800-53 Rev. 5AU-2 Event Logging; AU-3 Content of Audit Records; AU-9 Protection of Audit Information; AU-11 Audit Record Retention; CM-3 Configuration Change Control2, 3, 5, 6
NIST CSF 2.0ID.AM-07 inventories of data and metadata; DE.CM-09 monitoring of computing hardware, software and data2, 3
CIS Controls v8.1Control 8 Audit Log Management2, 6
ISO/IEC 27001:2022 Annex AA.8.15 Logging2, 3, 6
NCSC CAFC1.a Sources and Tools for Logging and Monitoring; C1.b Securing Logs2, 6

NIST SP 800-92 Rev. 1, the Cybersecurity Log Management Planning Guide, was still an initial public draft (October 2023) when checked in November 2026. The joint ASD-led guidance Best Practices for Event Logging and Threat Detection, co-sealed by CISA, the NCSC and others, is a useful companion. For the control context see the CIS Control 8 Audit Log Management Guide and the SIEM Log Source Onboarding Checklist.

Related NHI Mgmt Group resources: Detection as Code Guide · Detection Engineering Guide · Security Metrics Dictionary Template · SIEM Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.