# Create data\_stream for container logs

**URL:** <https://discuss.elastic.co/t/create-data-stream-for-container-logs/374744>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [February 19, 2025, 9:28am UTC](https://discuss.elastic.co/t/create-data-stream-for-container-logs/374744 "2025-02-19T09:28:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prakash85](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prakash85/32/140684_2.png) [@prakash85](https://discuss.elastic.co/u/prakash85)\
**Post date:** [February 19, 2025, 9:28am UTC](https://discuss.elastic.co/t/create-data-stream-for-container-logs/374744/1 "2025-02-19T09:28:12Z")

</div>

Hi All, I'm new here and i have query creating data\_streams for container logs

we have a common ELK without logstash for all - dev, stg,tst & prd and when we send logs from container to elasticsearch the dataset is prefixed with "log-" and matches always with managed index template ("logs-kubernetes.container" or "logs" index\_template) & index\_pattern "logs-\*"

Reaching out to you to understand how to handle in this scenario's where i can create data\_streams for each individual environment with custom ILM policy to be applied

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 19, 2025, 9:29am UTC](https://discuss.elastic.co/t/create-data-stream-for-container-logs/374744/2 "2025-03-19T09:29:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
