Elastic Common Schema (ECS) Fields: event, source, user and More
Published
One JSON document per event from Filebeat, Winlogbeat, Auditbeat or Elastic Agent, with field names from the Elastic Common Schema: @timestamp, the event categorization fields (category, type, action, outcome), and objects for the source, destination, user, host, process and network.
Official documentation: Elastic: ECS event fields · Elastic: ECS field reference
Sample record
Numbered lines are the fields in the table.
From the LogTriage parser test corpus — synthetic data, no real hosts or users.
Field reference
| Field | Type | Meaning | Why it matters for security |
|---|---|---|---|
| 1@timestampe.g. 2024-01-15T14:33:00.000Z | date-time | Elastic: "Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source." | When the event source has no time of its own, Elastic says it is filled with when the pipeline first saw it — check event.created and event.ingested if they differ. |
| 2event. | keyword or list | Elastic: "one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy" — authentication, network, process, file, iam and others from a fixed list. | The reliable way to filter across products; every vendor's login events share category authentication. |
| 3event. | keyword or list | Elastic: "indicates the third level in the ECS category hierarchy" — start, end, connection, denied, creation, change and others from a fixed list. | Combine with category — authentication with type start is a login, network with type denied is a blocked connection. |
| 4event. | keyword | Elastic: "The action captured by the event … more specific than event.category … The value is normally defined by the implementer." | Product-specific, so values differ between Beats and integrations; use it for detail, category and type for portable rules. |
| 5event. | keyword | Elastic: "one of four ECS Categorization Fields, and indicates the lowest level in the ECS category hierarchy" — success, failure or unknown. | Counting authentication failures per source.ip is brute-force detection in any ECS data. |
| 6source. | IP address | Elastic: "IP address of the source (IPv4 or IPv6)." | The main pivot; the same source across network, authentication and process events tells the story. |
| 7source. | number | Elastic: "Port of the source." | Rarely useful alone; helps match one connection between systems. |
| 8destination. | IP address | Elastic: "IP address of the destination (IPv4 or IPv6)." | Which internal system was targeted. |
| 9destination. | number | Elastic: "Port of the destination." | 22, 3389 and 445 from the internet are the exposure to close. |
| 10user. | string | Elastic: "Short name or login of the user." | Names like admin, root and test from outside addresses are guesses. |
| 11host. | string | Elastic: "Name of the host" — what hostname returns, the FQDN, or a name the user set. | Group process and authentication events per host. |
| 12agent. | string | Elastic: "Type of the agent" — filebeat, winlogbeat, auditbeat, packetbeat or elastic-agent. | Tells you which collector produced the event, and so which other fields to expect. |
| 13network. | string | Elastic: "Direction of the network traffic" — ingress/egress from a host's point of view, inbound/outbound/internal/external from a network's. | Inbound denied connections are scanning; outbound allowed ones to unknown addresses are the ones to examine. |
| process. | string | The full command line that started the process, from the ECS process fields. | Credential-tool syntax, encoded PowerShell and download cradles show up here. |
Have one of your own records? Paste it into the log line explainer and each field is explained from this table, with times, codes and addresses decoded — in your browser.
What it records
ECS documents are JSON with nested objects whose names Elastic defines in the ECS field reference. Every event has @timestamp and the four categorization fields under event: kind, category, type and outcome, plus a free-form action. The rest depends on what happened: source and destination for traffic, user for identities, host for the machine, process for programs, network and http for protocols, agent for the shipper.
The categorization fields form a hierarchy. event.kind is the top: event for something that happened, alert for a detection a product raised, signal for an Elastic Security detection, and metric or state for measurements. Below it, category and type describe the event from Elastic’s fixed lists, and outcome says whether it worked. Reading kind first keeps raw events and alerts about them from being counted twice.
The malicious sample shows four events from different collectors that share one address: a denied inbound SSH connection, a failed authentication for admin, mimikatz.exe running with credential-dumping modules, and a denied connection from a second address.
Where to get it
- Elasticsearch. Query indices or data streams (
logs-*) through Kibana Discover, the_searchAPI, orelasticdump/_reindexfor export. - Shippers’ output. Filebeat, Winlogbeat and Elastic Agent can write ECS JSON to files or Kafka as well as to Elasticsearch.
- Search hits. An
_searchresponse wraps documents inhits.hits[]._source; the free analyzer reads that shape directly.
# Failed authentications per source address from an exported NDJSON file
jq -r 'select((.event.category|tostring|test("authentication")) and .event.outcome=="failure") | .source.ip' export.ndjson | sort | uniq -c | sort -rn | head
Parsing pitfalls
- Nested or dotted. Documents can be nested (
{"event":{"category":…}}) or flattened with dotted keys ("event.category"); accept both. - Arrays.
event.categoryandevent.typemay be lists. - Implementer-defined actions.
event.actionvalues differ by integration; avoid relying on them across sources. - Partial mappings. Custom pipelines may fill only some fields; check what your data actually contains before writing rules.
_sourcewrappers. Search API results addhits.hits[]._sourcearound each document.
Detection ideas
- Brute force:
event.categoryauthentication withevent.outcomefailure grouped bysource.ipanduser.name. - Credential theft:
process.command_linewith Mimikatz syntax — the ECS Mimikatz rule. - Scanning: network events with type denied from one source across ports or destinations.
- Follow the address: the same
source.ipin network, authentication and process events within minutes is an intrusion in progress.
The free browser analyzer reads ECS documents, nested or flattened, and runs these checks locally.
Sending Elastic Common Schema to an LLM
One megabyte of this format is about 483,687 tokens on current Claude models and 317,073 on GPT models, measured with the models' own tokenizers — so a gigabyte sent raw to Claude Sonnet 5.5 costs about $967 in input tokens alone (prices of 2026-10-24). Estimate your own volume →
Detections and guides for Elastic Common Schema
Frequently Asked Questions
- What is the Elastic Common Schema?
- ECS is Elastic's open specification of field names for log and event data. Beats, Elastic Agent integrations and many third-party shippers map their data into it, so a login from Windows, Linux or a cloud service ends up with the same event.category, event.outcome, source.ip and user.name. That is what lets one rule cover many products.
- What is the difference between event.category, event.type and event.action?
- category and type come from fixed lists Elastic defines — category is the broad area (authentication, network, process) and type the kind of event within it (start, connection, denied). action is free text chosen by whoever wrote the integration. Build portable detections on category, type and outcome; use action for product-specific detail.
- Why does @timestamp not match when the event happened?
- Elastic defines @timestamp as when the event originated, taken from the event itself. If the source had no time of its own, the pipeline fills it in when it first sees the event. Compare with event.created and event.ingested when ordering events from slow or batched sources.
- Can ECS fields be arrays?
- Yes. event.category and event.type can hold several values, and the JSON form may be a list rather than a string. Match on membership, not equality, or a rule for category authentication will miss events that list both authentication and session.
Analyze a Elastic Common Schema file in your browser
The free analyzer detects this format, parses every field above and flags attack patterns — the file never leaves your machine. For threat-intel enrichment and an AI-written incident report, run it through LogTriage.
Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing
How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]