Type to search.

Organize your data with wired streams

Serverless Preview

Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.

Availability

  • Preview

    This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.

Serverless interfaces and procedures might differ from classic Elastic Stack deployments.

Stack Preview 9.2+

The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.

Availability

  • Preview since 9.2

    This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.

Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

When logs from multiple sources flow into a single wired stream, partitioning lets you route subsets of that data into dedicated child streams. Each child stream can then be managed independently, with its own retention policy, processing rules, and field mappings.

For example, from the logs.otel root wired stream, you can route firewall logs to a logs.otel.firewall child stream with a 7-day retention and application logs to a logs.otel.application child stream with a 30-day retention without duplicating any shared configuration.

Streams also gives you the following functionality:

  • No external routing infrastructure required: No Logstash, no third-party tools.
  • Child streams inherit everything from the parent: Field mappings, lifecycle settings, and processors cascade down automatically.
  • Config changes propagate through the hierarchy: Updates to a parent stream apply to all children without manual reconfiguration.
Note

Partitioning is only available on wired streams. If you're using classic streams or all your logs need identical treatment, skip this step.

Before creating partitions, refer to the following recommendations:

  • Partition by logical groupings, not by high-cardinality fields. Group logs by team, technology type, or environment (for example, web-servers, application, security) rather than by individual service names or host identifiers, which can generate too many streams to manage effectively.
  • Aim for tens of partitions, not hundreds. Each partition creates a dedicated data stream in Elasticsearch. There is a cost to each one, so keep the number manageable.
  • Partition only when logs form meaningfully distinct groups: by structure, behavior, or both. Each partition should map to a set of logs with a distinct schema (fields, formats, or log shapes that differ from other sources), different operational behavior (retention duration, access patterns, storage destination), or both. Firewall logs and application logs warrant a split because they look different and often need different retention. Logs from two web servers do not: same schema, same lifecycle, partitioning adds overhead without benefit. If your logs are structurally similar and need identical treatment, a single stream is simpler to operate.
  1. Open the Partitioning tab

    1. Open Streams from the navigation menu or use the global search field.
    2. Select your wired stream from the list.
    3. Go to the Partitioning tab.
  2. Create a partition

    Choose how to define partitions: manually, using field-based conditions, or automatically, by letting AI analyze your data and suggest groupings.

    Create partitions manually
    1. Select Create partition.
    2. In the Data preview, hover over a field and select:
      • The plus icon to route data where the field matches the value.
      • The minus icon to route data where the field does not match the value.
    3. Under Stream name, give the child stream a name that reflects the condition.
    4. Select Save to create the child stream.

    Under Condition, you can also set the field, comparator, and value directly. Turn on the Syntax editor to enter conditions in YAML. For more on conditions, refer to Streamlang conditions.

    Suggest partitions with AI
    Note

    This feature requires a Generative AI connector.

    1. Select Get partitions suggestions. Streams analyzes your data and suggests groupings.
    2. Review the suggested partitions, then Accept or Reject each one.
    3. To refine the results, select Modify suggestions, provide guidance (for example, "Partition by service name and severity level"), and submit. Streams regenerates suggestions based on your input.
    4. Continue refining as needed, or select Try again to start over.
    5. After accepting, review the generated Stream name and Condition.
    6. Select Create stream.
    1. Select Suggest partitions with AI. Streams analyzes your data and suggests groupings.
    2. Accept or Reject the suggestions. After accepting, review the Stream name and Condition.
    3. Select Create stream.
  3. Review the stream hierarchy

    After saving, your stream list updates to show the parent-child relationship.

    Child streams automatically inherit the parent's field mappings, lifecycle settings, and processors. You can override any inherited setting at the child level without affecting the parent or other children.

After partitioning, each child stream can be configured independently. You're ready to: