# Logstash is creating data streams instead of indices in ES

**URL:** https://discuss.elastic.co/t/logstash-is-creating-data-streams-instead-of-indices-in-es/263824
**Category:** Logstash
**Created:** [February 10, 2021, 4:41am UTC](https://discuss.elastic.co/t/logstash-is-creating-data-streams-instead-of-indices-in-es/263824 "2021-02-10T04:41:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![naveenj](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@naveenj](https://discuss.elastic.co/u/naveenj)
#### Post date: [February 10, 2021, 4:41am UTC](https://discuss.elastic.co/t/logstash-is-creating-data-streams-instead-of-indices-in-es/263824/1 "2021-02-10T04:41:31Z")

</div>

```auto
elasticsearch {
    host => "localhost"
    index_type => "logs-%{[kubernetes][labels][app]}"
  }

```

I am using above configuration in logstash Helm chat values.yml file for OKD setup.  
filebeat -\>logstash -\>ES  
Some logs are creating indices and some are creating data streams  
But i want all are indices only.  
Can you please help. Thank you.

---

<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 10, 2021, 4:42am UTC](https://discuss.elastic.co/t/logstash-is-creating-data-streams-instead-of-indices-in-es/263824/2 "2021-03-10T04:42:22Z")

</div>

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