# Python Search on Data Stream

**URL:** https://discuss.elastic.co/t/python-search-on-data-stream/324680
**Category:** Elasticsearch
**Created:** [February 3, 2023, 5:33pm UTC](https://discuss.elastic.co/t/python-search-on-data-stream/324680 "2023-02-03T17:33:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yeppazu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yeppazu/32/96595_2.png) [@yeppazu](https://discuss.elastic.co/u/yeppazu)
#### Post date: [February 3, 2023, 5:33pm UTC](https://discuss.elastic.co/t/python-search-on-data-stream/324680/1 "2023-02-03T17:33:49Z")

</div>

Hello,  
we migrate from an Elasticsearch 7.17 with indeces to Elasticsearch 8.6.0 with data stream.

In the past we had develop a python script to search inside indices with pattern "myname-\*".  
Because now beats use data stream, the pattern doesn't return any index.

How to search in the data streams with python library?

Best regards,  
Y.

---

<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 3, 2023, 5:34pm UTC](https://discuss.elastic.co/t/python-search-on-data-stream/324680/2 "2023-03-03T17:34:40Z")

</div>

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