# Filebeat: Ingest logs to Datastream

**URL:** <https://discuss.elastic.co/t/filebeat-ingest-logs-to-datastream/256164>\
**Category:** Elasticsearch\
**Created:** [November 20, 2020, 5:17pm UTC](https://discuss.elastic.co/t/filebeat-ingest-logs-to-datastream/256164 "2020-11-20T17:17:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishakh](https://avatars.discourse-cdn.com/v4/letter/v/c89c15/32.png) [@vishakh](https://discuss.elastic.co/u/vishakh)\
**Post date:** [November 20, 2020, 5:17pm UTC](https://discuss.elastic.co/t/filebeat-ingest-logs-to-datastream/256164/1 "2020-11-20T17:17:26Z")

</div>

ELK-stack: 7.10  
Currently, I'm using filebeat to ingest logs to elasticsearch directly to an index (example: useract-\*)

Since 7.9.1, I see a new feature called data-stream.  
Question: How can we specify and make filebeat agent to be aware so as where to ingest the logs. I mean how can we enforce the filebeat to ingest logs to particular data-stream instead of traditional index?

---

<div class="post-metadata">

**Author:** ![jspin](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jspin](https://discuss.elastic.co/u/jspin)\
**Post date:** [November 30, 2020, 10:06pm UTC](https://discuss.elastic.co/t/filebeat-ingest-logs-to-datastream/256164/2 "2020-11-30T22:06:56Z")

</div>

I second this question. The documentation regarding what a data stream is and how to use it is clear but there seems to be nothing on how to use data streams with beats.

---

<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:** [December 28, 2020, 10:07pm UTC](https://discuss.elastic.co/t/filebeat-ingest-logs-to-datastream/256164/3 "2020-12-28T22:07:15Z")

</div>

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