# Elasticsearch index does not recognize date (Logstash pipeline)

**URL:** <https://discuss.elastic.co/t/elasticsearch-index-does-not-recognize-date-logstash-pipeline/245616>\
**Category:** Logstash\
**Created:** [August 19, 2020, 1:58pm UTC](https://discuss.elastic.co/t/elasticsearch-index-does-not-recognize-date-logstash-pipeline/245616 "2020-08-19T13:58:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Dieguez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luis_dieguez/32/74170_2.png) [@Luis\_Dieguez](https://discuss.elastic.co/u/Luis_Dieguez)\
**Post date:** [August 19, 2020, 1:58pm UTC](https://discuss.elastic.co/t/elasticsearch-index-does-not-recognize-date-logstash-pipeline/245616/1 "2020-08-19T13:58:56Z")

</div>

I've been doing more testing and I'm almost done learning about ELK. But I have a little problem. By creating a pipeline and outputting the elasticsearch cluster as follows:

```auto
output { 
  
  elasticsearch {
    hosts => ["IP:9200", "IP:9200", "IP:9200"]
    manage_template => false
    index => "example-%{+yyyy.MM.dd}"
  }
}

```

It does not correctly create the date. I have followed the indications of the documentation as it says: [https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-index](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-index)

The above code creates the index: `example-`

Instead if I leave the default by unchecking the fields `manage_template` and `index` it create the index with the format correct: `logstash-2020.08.17-000001`

So I don't really know what I'm failing at. If it is a documentation issue or some other formatting error.

Another detail is that I have seen some examples from 2018 with the following format: `index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"` . And reviewing the same previous link about the elasticsearch output plugin means creating different indexes, but I think it refers more to separating indexes according to a production or development space more than creating different indexes according to a date.

---

<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:** [September 16, 2020, 1:59pm UTC](https://discuss.elastic.co/t/elasticsearch-index-does-not-recognize-date-logstash-pipeline/245616/2 "2020-09-16T13:59:19Z")

</div>

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