RousselTMLEARNING

Article · Logstash: from discovery to expertise

Elastic Common Schema (ECS)

2. Elastic Common Schema #

Common fields.

Why ECS #

ECS defines common field names: source.ip, host.name, http.response.status_code, log.level, event.category… When every source follows them, one query, dashboard or detection rule works across all data.

Custom fieldECS field
clientipsource.ip
statushttp.response.status_code
levellog.level
serverhost.name
useruser.name
filter {
  mutate {
    rename => {
      "clientip" => "[source][ip]"
      "status"   => "[http][response][status_code]"
      "level"    => "[log][level]"
    }
  }
}

ecs_compatibility mode #

Since version 8, Logstash plugins produce ECS-compatible fields by default (pipeline.ecs_compatibility: v8): the beats input, grok with ECS patterns, geoip… The disabled mode restores the old behaviour, useful to migrate legacy pipelines.

Good practice: Put your business fields outside ECS namespaces, under your own prefix (labels.* for simple keywords, or myapp.*): they will not clash with a future ECS version.

📄 Logstash: managing plugins and adopting Elastic Common Schema (ECS) →

My progress

  • ⏱ Estimated time : ≈ 9 min

Sign in to track your progress and take notes. Sign in

⭐ Rate this lesson

5.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 Questions about this lesson

No questions yet: be the first to ask for help or share your configuration.

Ask a question about this lesson →

Course Glossary

Logstash

An open-source, server-side data processing pipeline that ingests data from a multitude of sources simultaneously, transforms it, and then sends it to...

Recommended Articles

Understanding the Elastic Common Schema (ECS)

As always in our consulting engagements, we recommend that companies harmonise and standardise: k...

Logstash: inputs and outputs

Written version of the video lessons: common inputs (beats, file, tcp/udp, http, kafka, jdbc) and...

Elastic Security: SIEM, detection rules and investigation

Use Elastic Security as a SIEM: ECS data sources, detection rule types (query, EQL, ES|QL, thresh...

Beats: going further (security, performance, Elastic Agent and migrating to Alloy)

Industrialize Filebeat, Metricbeat and the other Beats: secure outputs, processors, modules, tuni...

Logstash: role, pipeline concept and installation

Written version of the video lessons: what Logstash is for, how a pipeline works (inputs, filters...

Logstash: filters, grok and dissect

Written version of the video lessons: essential filters (mutate, date, json, kv, drop), the grok ...

Logstash in production: persistent queues, DLQ and multiple pipelines

Make Logstash reliable in production: persistent queue, dead letter queue, multiple pipelines and...

Logstash: enrich, test, monitor and deploy on Kubernetes

Enrich with translate, geoip and elasticsearch, consume Kafka, test pipelines, monitor Logstash a...

Machine learning in Elastic: anomaly detection and AIOps

Automatically detect abnormal behaviour: anomaly detection jobs, datafeeds, detectors, influencer...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!