# Create a index in ES using the REST service

**URL:** <https://discuss.elastic.co/t/create-a-index-in-es-using-the-rest-service/46117>\
**Category:** Elasticsearch\
**Created:** [April 2, 2016, 5:18am UTC](https://discuss.elastic.co/t/create-a-index-in-es-using-the-rest-service/46117 "2016-04-02T05:18:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [April 2, 2016, 5:18am UTC](https://discuss.elastic.co/t/create-a-index-in-es-using-the-rest-service/46117/1 "2016-04-02T05:18:47Z")

</div>

I am using the REST service to create a index named "iislogs"

URL - [http://myserver:9200/iislogs](http://myserver:9200/iislogs)

But this is not generating logs on daily basis. e.g. filebeat-2016.27.03, logstash-2016-02-02.

How can I achieve this ?

---

<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:** [April 2, 2016, 5:56am UTC](https://discuss.elastic.co/t/create-a-index-in-es-using-the-rest-service/46117/2 "2016-04-02T05:56:20Z")

</div>

Append the date to the index name.

This is what LS or beats is doing.

---

<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:** [July 5, 2017, 11:03pm UTC](https://discuss.elastic.co/t/create-a-index-in-es-using-the-rest-service/46117/3 "2017-07-05T23:03:03Z")

</div>


