# Index naming problem

**URL:** <https://discuss.elastic.co/t/index-naming-problem/115712>\
**Category:** Logstash\
**Created:** [January 16, 2018, 12:43pm UTC](https://discuss.elastic.co/t/index-naming-problem/115712 "2018-01-16T12:43:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohanLanderholm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johanlanderholm/32/74466_2.png) [@JohanLanderholm](https://discuss.elastic.co/u/JohanLanderholm)\
**Post date:** [January 16, 2018, 12:43pm UTC](https://discuss.elastic.co/t/index-naming-problem/115712/1 "2018-01-16T12:43:55Z")

</div>

Hi,  
I'm trying to insert documents into an Elasticsearch index from a filebeat, through Logstash processing.  
My Logstash config looks like this:  
input {  
beats {  
port =\> 5044  
}  
}  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> ["logstash-%{+YYYY.MM.dd}"]  
}  
}

The problem I have is that Elasticsearch then creates the index named:  
logstash-0018.01.16  
And I can't find any data in this index.

Does anyone know what's wrong with this config?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 16, 2018, 1:43pm UTC](https://discuss.elastic.co/t/index-naming-problem/115712/2 "2018-01-16T13:43:40Z")

</div>

Question moved to #logstash.

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```
````

---

<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:** [February 13, 2018, 1:44pm UTC](https://discuss.elastic.co/t/index-naming-problem/115712/3 "2018-02-13T13:44:04Z")

</div>

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