↓ Skip to main content
Elastic

ECS: Elastic common schema

·1 min

Open specification for document fields for data ingested in Elasticsearch. It brings uniformity to certain common fields that are used across data sources.

ECS defines two field levels

  1. Core fields: Represent the fields that are most common across all use cases.
  2. Extended fields: That are not part of the core and specific to cases.

Field sets
#

Field sets are multiple groups of related fields defined by ECS. More information here.

Base fields
#

Common across all event, and are at the top level. E.g. @timestamp, tags etc. More details available here.

Agent fields
#

As the name indicates it about the software entity like FileBeat agent. Details here. E.g. agent.name, agent.id etc.

Error fields
#

Represents errors of any kind in ECS. E.g. error.code, error.message etc. More details available here.

Event fields
#

It provides for the context information of the log or the metric event. More details here. E.g. event.created, event.code etc.

Host fields
#

It populates the information about the host on which the event happened. E.g. host.ip, host.mac etc.

More details available here.

Author
Samarthya
Engineer, learner, tinkerer. This is my trophy shelf of everyday work and leisure.

Related

Text - Elastic

·4 mins
If you are not aware of mapping, it might be a little confusing but I would try my best. Every document that gets indexed in elastic has fields, every field that is accessible has an associated type with it (Inverted Index) which helps elastic organize data for quick retrieval.