# Indices names missing timestamp

**URL:** <https://discuss.elastic.co/t/indices-names-missing-timestamp/208730>\
**Category:** Logstash\
**Created:** [November 20, 2019, 3:27pm UTC](https://discuss.elastic.co/t/indices-names-missing-timestamp/208730 "2019-11-20T15:27:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepak\_deore](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@deepak\_deore](https://discuss.elastic.co/u/deepak_deore)\
**Post date:** [November 20, 2019, 3:27pm UTC](https://discuss.elastic.co/t/indices-names-missing-timestamp/208730/1 "2019-11-20T15:27:40Z")

</div>

elasticsearch index name is not created correctly, here is the logstash config:

```auto
output {
  #stdout { codec => rubydebug }
  elasticsearch {
     hosts => "es.example.com:443"
     ssl => true
     ssl_certificate_verification => true
     user => xxxxxxxx
     password => yyyyyyyyy
     manage_template => false
     index => "klogs-%{+YYYY.MM.dd}"
  }
}

```

index is missing "%{+YYYY.MM.dd}", what can be wrong here? logstash version is `7.1.1` and ES version `7.4.1`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/b/dbc7eb5fe22dac79eefce08cc5bc2727aee0091d.png)

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [November 21, 2019, 3:10am UTC](https://discuss.elastic.co/t/indices-names-missing-timestamp/208730/2 "2019-11-21T03:10:40Z")

</div>

I moved this post to the Logstash forum.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 21, 2019, 1:58pm UTC](https://discuss.elastic.co/t/indices-names-missing-timestamp/208730/3 "2019-11-21T13:58:24Z")

</div>

That would happen if you have deleted the @timestamp field -- the sprintf reference to @timestamp will produce an empty string.

---

<div class="post-metadata">

**Author:** ![deepak\_deore](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@deepak\_deore](https://discuss.elastic.co/u/deepak_deore)\
**Post date:** [November 21, 2019, 3:59pm UTC](https://discuss.elastic.co/t/indices-names-missing-timestamp/208730/4 "2019-11-21T15:59:36Z")

</div>

i was removing @timestamp field, it creates the index correctly after keeping @timestamp field.

---

<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:** [December 19, 2019, 3:59pm UTC](https://discuss.elastic.co/t/indices-names-missing-timestamp/208730/5 "2019-12-19T15:59:38Z")

</div>

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