Skip to content

Datasets

A dataset represents a collection of indexes that you want to analyze together. Datasets provide a user-friendly way to organize and access your observability data in OpenSearch Dashboards. Datasets allow you to assign types, names, and descriptions to your data sources and indexes, making it easier to work with logs and traces.

For log analytics use cases, datasets are the recommended way to define the data you want to analyze. They build on index patterns rather than replacing the underlying storage, while adding the semantic information that the observability Discover experience relies on.

An index pattern identifies a set of OpenSearch indexes by name and knows their fields and time field — and nothing more. A dataset adds the context that makes logs and traces easier to work with:

  • Enhanced functionality on logs and traces pages: The Logs and Traces Discover pages consume datasets, and datasets unlock their time-based features there — the histogram, time-range controls, and signal-specific views.
  • Signal typing: A dataset declares whether it holds logs or traces. OpenSearch Dashboards uses this to route the dataset to the right specialized page — a logs dataset opens in Discover > Logs, a traces dataset in Discover > Traces. Index patterns are untyped, so the experience cannot be tailored to the signal.
  • OpenTelemetry schema mappings: Datasets map non-standard field names to OpenTelemetry concepts (trace ID, span ID, service name, timestamp), even when the raw data does not use OpenTelemetry field names.
  • Correlation: Because fields are mapped to OpenTelemetry concepts, datasets power correlations — jumping from a log entry to the trace that produced it.
  • User-friendly definitions: Datasets get descriptive names and descriptions instead of relying on raw index pattern syntax, and are shared across a workspace so teams use a common vocabulary for their data.
AspectIndex patternDataset
Signal typingNoneLogs or traces
OpenTelemetry schema mappingsNoneYes
Correlation between logs and tracesNoneYes
Friendly name and descriptionLimitedYes
Where it appearsClassic DiscoverObservability workspace (Discover Logs and Traces, and when creating visualizations)

OpenSearch supports the following dataset types.

TypeDescriptionUse case
LogsGeneric log data for analytics and explorationApplication logs, system logs, access logs
TracesOpenTelemetry span data ingested through OpenSearch Data PrepperDistributed tracing, performance monitoring

To create a logs dataset, follow these steps:

  1. In the workspace left navigation, select Datasets.

  2. Select Create dataset and choose Logs from the dropdown menu.

  3. In Step 1: Select data, select your data source. You can use wildcard patterns (for example, logs-*) to match multiple indexes.

    Selecting a data source

  4. In Step 2: Configure data, configure the dataset settings.

    Configuring logs dataset settings

    You can configure the following settings:

    • Name — Enter a descriptive name for the dataset.
    • Description (Optional) — Add the data description.
    • Time field: Choose the timestamp field for time-based queries.
    • Schema mappings (Optional) — Map your log fields to standard OpenTelemetry fields for correlation with traces:
      • Trace ID field: The field containing trace identifiers.
      • Span ID field: The field containing span identifiers.
      • Service name field: The field containing service names.
      • Timestamp field: The field containing event timestamps.
  5. Select Create dataset to save your configuration.

To create a traces dataset, follow these steps:

  1. In the workspace left navigation, select Datasets.

  2. Select Create dataset and choose Traces from the dropdown menu.

  3. In Step 1: Select data, select your trace data source. The data source must reference indexes containing OpenTelemetry span data ingested using Data Prepper.

  4. In Step 2: Configure data, configure the dataset settings.

    Configuring traces dataset settings

    You can configure the following settings:

    • Name — Enter a descriptive name for the dataset.
    • Description (Optional) — Add the data description.
    • Time field — Choose the timestamp field (typically, startTime or @timestamp).
  5. Select Create dataset to save your configuration.

After creating datasets, you can view and manage them from the Datasets page using the following steps:

  1. In the workspace left navigation, select Datasets.

  2. The list view displays all datasets with their names, types, and data sources.

    Datasets list view

  3. Select a dataset to view its details, including configuration settings and any correlations.

Datasets integrate with the Discover interface for exploring your data.

To analyze logs datasets, follow these steps:

  1. Navigate to Discover > Logs.
  2. From the dataset selector, select your logs dataset.
  3. Use Piped Processing Language (PPL) queries to explore and analyze your log data.

To analyze traces datasets, follow these steps:

  1. Navigate to Discover > Traces.
  2. Select your traces dataset from the dataset selector.
  3. Explore span data and trace flows.

Datasets do not introduce a separate store. A saved dataset is persisted as an index-pattern saved object, with the dataset-specific attributes (such as signal type and schema mappings) carried alongside on the same object. (Ad-hoc datasets are held as temporary, in-memory index patterns with no backing saved object.) This is what allows saved datasets and index patterns to coexist:

  • Shared storage, no migration. A dataset created in an observability workspace is visible as an index pattern to the classic Discover experience, and an existing index pattern appears in the dataset selector. There is no separate set of definitions to keep in sync.
  • Existing workflows keep working. Teams using the classic Discover experience continue to work with index patterns exactly as before. They simply do not see the dataset-only enhancements (signal typing and OpenTelemetry schema mappings for correlation).
  • The management view is workspace-scoped. The Datasets management page appears inside an observability workspace; outside of it, the navigation shows the classic Index patterns page. Both operate on the same underlying objects.

As a result, teams can adopt datasets when they move to an observability workspace without losing access to data defined elsewhere, and can transition team by team rather than all at once.

Datasets are surfaced through the observability workspace and its Discover experience, which is configured at the cluster level. The intended setup enables the workspace, data source, and new Discover experiences together:

data_source.enabled: true
workspace.enabled: true
explore.enabled: true

Enabling the new Discover experience also turns on the related query settings it depends on (such as the new saved-queries UI, query enhancements, the new home page, and the default theme). The workspace and data_source flags are independent and must be enabled separately, as shown above. Once configured, create and manage datasets from the Datasets page inside an observability workspace.