# Logstash does not create logstash-\* indices in ES

**URL:** https://discuss.elastic.co/t/logstash-does-not-create-logstash-indices-in-es/198667
**Category:** Logstash
**Created:** [September 9, 2019, 11:07am UTC](https://discuss.elastic.co/t/logstash-does-not-create-logstash-indices-in-es/198667 "2019-09-09T11:07:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ehsank777](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ehsank777/32/64420_2.png) [@ehsank777](https://discuss.elastic.co/u/ehsank777)
#### Post date: [September 9, 2019, 11:07am UTC](https://discuss.elastic.co/t/logstash-does-not-create-logstash-indices-in-es/198667/1 "2019-09-09T11:07:41Z")

</div>

Hi,  
Since we upgraded ELK to the version 7.2 , we faced a problem. logstash is creating indices with other names except logstash-yyyy.mm.dd format . In other words within logstash.conf we have

```
output {
    if "foo" in [tags] {
            elasticsearch { index => "foo-%{+YYYY.MM.dd}" }
    } else if "bar" in [tags] {
            elasticsearch { index => "bar-%{+YYYY.MM.dd}" }
    } else {
            elasticsearch { }
    }

```

it means if neither of "foo" or "bar" in tags, logs should be created under default indexing name, logstash-\* but they don't. For example , from old logstash we have logstash-2019.09.05 in ES but after update on 2019.09.06 , we have nothing. I already tried deleting logstash template with  
curl -XDELETE [http://localhost:9200/\_template/logstash](http://localhost:9200/_template/logstash)  
but it did not work.

---

<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: [October 7, 2019, 11:07am UTC](https://discuss.elastic.co/t/logstash-does-not-create-logstash-indices-in-es/198667/2 "2019-10-07T11:07:45Z")

</div>

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