Iniciar sesión

Practice: speaking ECS

12 min · 2 ejercicio(s)

Cheat sheet

You want ECS field
When it happened @timestamp
On which machine host.name
Who user.name
From where / to where source.ip, destination.ip, destination.port
Country of an address source.geo.country_iso_code
Which program, started by which process.name, process.parent.name
Full command process.command_line
What kind of event event.category, event.type
Did it work event.outcome
Which data source event.dataset

Typical mistakes

  • Mixing up source and destination. For outbound traffic the internal host is the source.
  • Inventing fields. src_ip next to source.ip means half of your queries miss half of your data.
  • Free text in categorization fields. event.category: login is not an ECS value, authentication is.
  • Wrong types. An IP stored as keyword can't be searched with CIDR ranges and breaks ip comparisons across indices.

Ejercicios prácticos de esta lección

Resuelve estos ejercicios con una consulta en el laboratorio Elasticsearch real. Inicia sesión gratis para acceder al laboratorio, las pistas y la corrección automática.

  1. 1. Where does it come from?

    Which ECS field says which data set an event belongs to, with values like nginx.access, system.auth or lab.endpoint?

  2. 2. Shop logons in ECS

    The shop logs failed customer logons:

    2026-03-09T08:04:46.777Z WARN  [auth] customer login failed customer=cust-40733 reason=bad_password client=77.183.61.24

    The lab already extracted client. Map it to the ECS field for the address the request came from, and set event.category, event.type and event.outcome so these lines look like every other failed logon.