﻿---
title: Partition data into child streams
description: For wired streams, the /logs endpoint acts as the entry point for all your log data. Once you've sent your data to the /logs endpoint, open the stream...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4241/solutions/observability/streams/management/partitioning
---

# Partition data into child streams
<note>
  The **Partitioning** tab and the ability to route data into child streams is only available on [wired streams](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4241/solutions/observability/streams/wired-streams).
</note>

For [wired streams](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4241/solutions/observability/streams/wired-streams), the `/logs` endpoint acts as the entry point for all your log data.
Once you've sent your data to the `/logs` endpoint, open the stream and use the **Partitioning** tab to organize and route the data into meaningful child streams. For example, you can partition your logs into child streams their source or type:
- Route application logs to a `logs.myapp` child stream.
- Route system logs to a `logs.system` child stream.

For more on when to partition your data and how granular your partitioning should be, refer to [Partitioning recommendations](#streams-partitioning-recommendations).
Create partitions using the following options:
- [**Manual configuration**](#streams-manual-partitioning): Use fields and attributes from your data to define how it's routed to child streams.
- [**AI suggestions**](#streams-AI-partitioning): Let Streams analyze your data and suggest partitions, which you can review and accept or reject.


## Partitioning recommendations

Partitioning helps you manage your data when you have multiple systems sending logs to a single parent stream.
Focus on logical groupings for data such as by team or overarching technology. For example, partition web server logs in one stream and custom application logs in another.
Don't partition by fields with high cardinality. Even partitioning by common fields like `service.name` can create too many partitions to manage effectively.
As a general rule, aim for tens of partitions, not hundreds. Each partition comes with a cost, as it creates a data stream in Elasticsearch under the hood. You can have many of them, but not an unlimited amount.

### When you *need* to partition

You only *need* a partition when you want a subset of your data to follow a different lifecycle than the rest.
For example, suppose you have a noisy firewall and a quiet custom application sending logs to the same stream. You don't need to retain the firewall logs for as long and they take up disk space. In this case, you can partition the stream and assign a different [ILM policy or retention setting](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4241/solutions/observability/streams/management/retention) to each child stream:
```bash
logs
- logs.firewall [7d]
- logs.custom-app [30d]
```


## Create partitions manually

To manually configure when to send data to child streams:
1. Select **Create partition manually**.
2. From the **Data preview**, filter data based on fields or attributes by hovering over the field and selecting the `plus_in_circle` icon. This creates a **Condition** for your stream.
3. Under **Stream name**, give your stream a name based on the condition.
4. Select **Save** to create the child stream.


## Create partitions using AI suggestions

<note>
  This feature requires a [Generative AI connector](https://docs-v3-preview.elastic.dev/elastic/kibana/tree/main/reference/connectors-kibana/gen-ai-connectors).
</note>

To use AI suggestions to send data to child streams:
1. Select **Suggest partitions with AI**. Streams uses AI to look at your data and give you suggestions for grouping your data.
2. Either **Accept** or **Reject** the AI suggestions. After selecting **Accept**, you'll see the suggested **Stream name** and **Condition**.
3. Select **Create stream**.


## Next steps

After partitioning your wired streams:
- [Extract fields](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4241/solutions/observability/streams/management/extract) using the **Processing** tab to filter and analyze your data effectively.
- [Map fields](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4241/solutions/observability/streams/management/schema) using the **Schema** tab to make fields easier to query.