Map meaning, not just field names
How to map heterogeneous events into a validated common schema while preserving timestamp semantics, identity context, and source provenance for consistent cross-source searches. · advanced
A canonical mapping is a versioned contract from one source format and event type into a shared event class. Parse the record, identify its source version and event type, then select the mapping. Define each destination field's meaning, type, allowed values, and missing-value behavior. JSON conversion alone provides none of these guarantees. The field names below are illustrative, not official OCSF attributes.
Map by semantic equivalence. An application's client_ip and a network record's srcaddr can populate the same source-address field only when they describe the same role. An HTTP response code and an authentication result must not become one undifferentiated status. Select an appropriate event class, preserve the original value, and translate only meanings supported by that source's documentation.
Use explicit conversion rules: parse an address as an address, translate documented outcome values into a bounded vocabulary, and retain unsupported values in a source-specific extension. Missing, unknown, false, and zero are not interchangeable. A common schema such as OCSF supplies conventions, but the mapper must still interpret the source correctly.
| Source value | Canonical treatment | Required check |
|---|---|---|
| client_ip | source address | Represents the client |
| srcaddr | source address | Same address role |
| HTTP status 403 | HTTP response code | Keep protocol meaning |
| auth_result=DENIED | Authentication failure | Documented outcome mapping |