# \[Spark Structured streaming\] Elasticsearch sink index name

**URL:** <https://discuss.elastic.co/t/spark-structured-streaming-elasticsearch-sink-index-name/152449>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [October 15, 2018, 8:23am UTC](https://discuss.elastic.co/t/spark-structured-streaming-elasticsearch-sink-index-name/152449 "2018-10-15T08:23:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![james.baiera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james.baiera/32/10209_2.png) [@james.baiera](https://discuss.elastic.co/u/james.baiera)\
**Post date:** [October 23, 2018, 3:08pm UTC](https://discuss.elastic.co/t/spark-structured-streaming-elasticsearch-sink-index-name/152449/4 "2018-10-23T15:08:45Z")

</div>

As christian has mentioned above, ES-Hadoop will not create an index name using the current time, but rather will let you give a field name on your document to use in the index name creation. This field can contain a timestamp, which is usually what users want when they are using time based indices.

---

_[View the full topic](https://discuss.elastic.co/t/spark-structured-streaming-elasticsearch-sink-index-name/152449)._
