Skip to content

Dataset

Elasticsearch index datasets for AI training

An Elasticsearch dataset is an export of chosen indices from a business's Elasticsearch cluster: JSON documents from log and security data streams or from product and content search indices, with the mappings, analyzers, index templates and ingest pipelines that shaped them, and Kibana saved searches and dashboards where wanted. SourceX sources it to a buyer's spec from established businesses that run Elasticsearch. Each dataset is de-identified, with log messages screened for identifiers and secrets, and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
JSON documents from chosen indices and data streams of one cluster, with mappings, settings, templates, ingest pipelines and Kibana saved objects
Typical systems
Elasticsearch self-managed or on Elastic Cloud, fed by Logstash, Beats or Elastic Agent, with Kibana and Elastic Security indices in scope
Typical history
Set by index lifecycle policy; log streams reach back only as far as the delete phase allows, plus indices kept in snapshots
Modality
Semi-structured JSON documents with free-text message fields, plus JSON index and pipeline definitions
Delivery formats
Newline-delimited JSON of _id and _source per index, with mapping, settings, template and pipeline JSON and Kibana saved objects
Preparation
IP addresses, user identifiers, tokens and secrets in fields and message text replaced consistently; system indices left out
Licensing
Scoped per index pattern and time range; permitted use agreed per license; Elastic's terms and upstream record owners' terms checked by owner and buyer
Availability
Sourced to your spec; reach depends on lifecycle policy and snapshots, and supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
index_namestringThe _index a document was read from; for a data stream, the backing index, named with the stream, a date and a generation.
doc_idstringThe document's _id, set by the indexing client, often as the source system's key, or generated by Elasticsearch.
doc_versionintegerThe _version number, which rises with each write to this _id unless the client supplies external versions; earlier bodies are not kept.
sourceobjectThe _source JSON body as the search API returned it, including @timestamp and the data_stream type, dataset and namespace fields.
source_modeenumWhether the mapping stored _source whole, filtered it with includes or excludes, disabled it, or rebuilds it as synthetic _source.
event_original_keptbooleanWhether the ingest pipeline left the unparsed line in event.original beside the fields it extracted.
ignored_fieldsarrayThe _ignored metadata field: fields whose values stayed in _source but were not indexed, through ignore_malformed or ignore_above.
mappingobjectGet-mapping output for the index: field types such as keyword, text, date, ip, nested, flattened and dense_vector, multi-fields and analyzers.
index_settingsobjectIndex settings: custom analyzers and synonym filters under analysis, index mode, default pipeline and lifecycle policy name.
index_templateobjectThe index template and component templates that created the index, with their index patterns and priority.
ingest_pipelinearrayThe ingest pipeline's processors in order, such as grok, dissect, date, geoip, rename, remove and script, with on_failure handlers.
lifecycle_policyobjectThe index lifecycle policy's hot, warm, cold, frozen and delete phases, with rollover and age conditions.
kibana_objectsarrayKibana saved objects exported as NDJSON: data views, saved searches with their KQL, dashboards and visualizations, plus detection rules from Elastic Security's own rule export.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "index_name": ".ds-logs-nginx.access-prod-2025.03.04-000118",
  "doc_id": "kq3XZ5UBf2nT8wYh1c0a",
  "doc_version": 1,
  "source": {
    "@timestamp": "2025-03-04T02:15:09.412Z",
    "data_stream": {
      "type": "logs",
      "dataset": "nginx.access",
      "namespace": "prod"
    },
    "message": "ip_5f2a - - [04/Mar/2025:02:15:09 +0000] \"GET /api/orders/ord_4b1e?token=[removed] HTTP/1.1\" 502 157",
    "event": {
      "dataset": "nginx.access",
      "outcome": "failure"
    },
    "source": {
      "ip": "ip_5f2a"
    },
    "http": {
      "request": {
        "method": "GET"
      },
      "response": {
        "status_code": 502
      }
    },
    "url": {
      "path": "/api/orders/ord_4b1e"
    },
    "host": {
      "name": "web-07"
    }
  },
  "event_original_kept": false,
  "ignored_fields": [],
  "mapping": {
    "message": {
      "type": "match_only_text"
    },
    "source.ip": {
      "type": "ip"
    },
    "http.response.status_code": {
      "type": "long"
    },
    "url.path": {
      "type": "wildcard"
    }
  },
  "index_settings": {
    "index.mode": "standard",
    "default_pipeline": "logs-nginx.access-1.20.0",
    "lifecycle_policy": "logs"
  },
  "source_mode": "stored",
  "ingest_pipeline": [
    {
      "grok": {
        "field": "message",
        "patterns": [
          "%{IPORHOST:source.address} - %{DATA:user.name} \\[%{HTTPDATE:nginx.access.time}\\] ..."
        ]
      }
    },
    {
      "remove": {
        "field": "event.original"
      }
    }
  ],
  "lifecycle_policy": {
    "hot": "rollover",
    "delete": "by index age"
  },
  "kibana_objects": [
    {
      "type": "search",
      "title": "Checkout 5xx by upstream",
      "query": "http.response.status_code >= 500 and url.path : /api/orders/*"
    }
  ]
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train log parsing and field extraction

Where event.original was kept, the raw line, the grok pattern and the parsed fields form a supervised triple.

Diagnose incidents from logs

A data stream around a failure window shows error bursts across hosts, linked by trace and host fields.

Tune search relevance

A product or content index with its analyzers, synonym filters and multi-fields shows how a business shaped matching.

Generate Query DSL, KQL and ES|QL

Saved searches and detection rules are real queries written against real mappings.

Evaluate agents on messy schemas

Mapping conflicts between backing indices and fields that hold one value or many test schema handling.

Use-case guides: Coding agents, Document AI, enterprise search and RAG, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Original _source confirmed

Each index states whether _source was stored whole, filtered or synthetic.

Mappings per backing index

Mappings and settings arrive for every backing index, not only the newest.

Raw line kept

event.original survives beside the parsed fields for at least part of the range.

Counts reconcile

Exported lines per index match the cluster's own document counts.

Lifecycle policy stated

The policy and snapshot list explain the date range and any gaps.

Pipelines included

Ingest pipeline definitions show how each field was produced or dropped.

Retrieval

Elasticsearch dataset

This page covers elasticsearch indices.Illustrative

An index is a derived copy, and lifecycle policy decides its reach

An Elasticsearch index is almost never the system of record. A search index is a denormalized copy of products, articles or tickets synced from a database, one document per entity with related fields folded in. Each sync overwrites the document under its _id. The _version counter says how many times that happened, but earlier bodies are gone and a deleted document leaves nothing. Logs and security events are different: they arrive from Beats, Elastic Agent or Logstash into append-only data streams, whose hidden backing indices carry a date and a generation number. Neither kind has foreign keys. Documents relate through shared values such as trace.id or host.name, joined at query time if at all.

The mapping decides what every field means. A keyword field matches exactly, a text field is cut into tokens by its analyzer, and dynamic mapping guesses a type from the first value it sees, which cannot be changed afterwards. When a template changes, later backing indices of one stream can map a field differently from earlier ones. There is no array type, so any field may hold one value or many, and arrays of objects lose their pairing in the index unless mapped as nested.

How far back the data reaches is a policy setting. Index lifecycle management moves backing indices through hot, warm, cold and frozen phases and then deletes them whole by age, so a log stream reaches back as far as the delete phase allows, plus whatever sits in snapshots. Ingest pipelines also reshape events before storage: grok splits the message into fields, geoip adds a location, remove drops fields. Whether the raw line survives in event.original depends on the pipeline, so a log index is the business's parsed and pruned view of the stream.

Reading a document back returns its _source, the JSON body as it was sent, but only where the mapping stored it. _source can be disabled, or filtered with includes and excludes so that fields stay searchable yet are missing from what comes back. Indices in the logs and time series modes may use synthetic _source, which is rebuilt at read time: fields come back in alphabetical order and arrays of objects are regrouped under their leaf fields. Some values were never in _source: copy_to targets and runtime fields appear only when requested through the fields option, and recent versions leave dense_vector values out of _source by default. Values rejected by ignore_malformed or skipped by ignore_above stay in _source but are not indexed, and _ignored lists them.

A snapshot is a copy of segment files in a repository. It can be read only by restoring it into a cluster of a compatible version, so it is not a file a buyer can parse. Datasets are read out through search: a point in time paged with search_after, or the older scroll API, since ordinary from and size paging stops at the index's result window, 10,000 hits by default. The output is newline-delimited JSON, one document per line with its _index and _id. The export runs as some role, and document-level and field-level security remove documents and fields from its results without an error. Kibana saved objects export separately, as their own NDJSON.

Two checks fall to the buyer. Log messages hold whatever developers printed: client IP addresses, user IDs, emails, session cookies, bearer tokens in URLs. ECS fields such as source.ip, user.name and url.query can be handled by name, but message and event.original repeat the same values as free text. And indexed records often came from elsewhere: a SaaS tool's content, a vendor appliance's logs, a threat intelligence feed. To test a sample, compare line counts per index with the cluster, diff the mappings of the oldest and newest backing index, and search messages for Bearer and password strings.

What to check before licensing

  • Ask for each index's _source setting, stored whole, filtered or synthetic, so you know whether the JSON is what the application sent.
  • Ask for the lifecycle policy, or the data stream's retention setting, and the snapshot list, to learn the real date range and any gaps in it.
  • Ask which role read the documents out, and compare line counts with counts taken by an unrestricted role, and fields with the mapping, in case document-level or field-level security filtered them.
  • Scan message and event.original for IP addresses, emails, session tokens, API keys and passwords, not only the named ECS fields.
  • Ask which system each search index was synced from and which sources feed each log stream, and whether those owners' contracts allow reuse.
  • Diff the mappings of the oldest and newest backing index of each data stream, and ask whether dense_vector values were requested explicitly, since recent versions leave them out of _source by default.
  • Have the data owner and your counsel check Elastic's terms for the deployment and for Elastic-supplied content such as prebuilt rules against the intended use.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

How far back does an Elasticsearch log dataset go?

As far as the index lifecycle policy kept it. A log data stream usually has a delete phase that removes backing indices by age, so the cluster holds a rolling window. Older data exists only where indices were snapshotted before deletion or held in a frozen tier. Ask for the policy and the snapshot list first.

Will we get the original documents?

Only where _source was stored whole. If the mapping disabled it or excluded fields, those values cannot be read back, and synthetic _source returns a rebuilt document with fields reordered and arrays regrouped. For logs, the unparsed line survives only if the ingest pipeline kept event.original.

Why newline-delimited JSON and not a snapshot?

Because a snapshot is not a readable file format. It holds segment files that only Elasticsearch can restore, and only into a compatible version. Reading documents out through a point in time search gives plain JSON lines that any tool can parse, and lets fields be de-identified before delivery.

Can a search index show how records changed over time?

No, not by itself. Indexing a document under an existing _id replaces it, and Elasticsearch keeps a version counter but not the earlier body. A product index therefore shows each product as of the last sync. Change history has to come from the system the index was synced from, or from audit or change logs the business indexed separately.

How is personal data in log messages handled?

Personal details are removed or replaced before delivery, and the method used is recorded for each dataset. For logs, specify two things in the request. Named ECS fields such as source.ip, user.name and user.email should be replaced with consistent keys so sessions still link. Free-text fields such as message and event.original should be scanned for the same values and for tokens and secrets. No method is perfect, so search the sample yourself.

Is SourceX affiliated with Elastic?

Elasticsearch is named to identify the system the records come from. That does not imply a partnership with or endorsement by Elastic. The records belong to the business that runs Elasticsearch, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies