Skip to main content

ECS

Elastic Common Schema (ECS) is a specification that defines a common set of fields for ingesting data into Elasticsearch.

DataStream uses ECS in two distinct ways, and they differ in whether a version applies.

The flow collectors — the netflow, ipfix, and sflow devices — emit ECS-shaped JSON records conforming to ECS 8.11.0, and write that value into the ecs.version field of every record.

The Normalize processor uses ECS differently: as the pivot schema for all conversions. It converts the source format to ECS first, then from ECS to the requested target format, so converting between any two supported formats passes through the ECS field names below. This internal representation is not pinned to an ECS release and carries no ecs.version field.

Field groups include:

Field GroupCore FieldsDescription
Base Fields@timestamp, tags, labels, messageUniversal fields that appear in every event
Hosthost.name, host.ip, host.os.*, host.macInformation about the host machine
Networknetwork.protocol, network.type, network.direction, network.bytesNetwork activity details
Source/Destinationsource.ip, source.port, destination.ip, destination.portCommunication endpoint information
Useruser.id, user.name, user.domain, user.emailUser-related information
Eventevent.category, event.type, event.action, event.outcomeEvent classification details
Filefile.path, file.size, file.type, file.hash.*File-related information
Processprocess.pid, process.name, process.args, process.parent.*Process execution details
Errorerror.message, error.type, error.stack_traceError-related information