# How to implement index rollover properties/condition in ES using spring data elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-implement-index-rollover-properties-condition-in-es-using-spring-data-elasticsearch/322218>\
**Category:** Elasticsearch\
**Created:** [December 30, 2022, 1:40pm UTC](https://discuss.elastic.co/t/how-to-implement-index-rollover-properties-condition-in-es-using-spring-data-elasticsearch/322218 "2022-12-30T13:40:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [December 30, 2022, 1:40pm UTC](https://discuss.elastic.co/t/how-to-implement-index-rollover-properties-condition-in-es-using-spring-data-elasticsearch/322218/1 "2022-12-30T13:40:21Z")

</div>

Hello All,

How can I add the following property values in Elasticsearch when using spring-data-elasticsearch?  
Data from spring to elastic and need to configure ILM for this.For this specific usecase logsatsh cant be used and need to send data directly from spring webserive call to elastic.

Any suggestions?

Thanx

---

<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:** [December 30, 2022, 5:06pm UTC](https://discuss.elastic.co/t/how-to-implement-index-rollover-properties-condition-in-es-using-spring-data-elasticsearch/322218/2 "2022-12-30T17:06:29Z")

</div>

If you cannot use logstash and need to send data directly to elasticsearch it might be better to ask the question in the elasticsearch forum.

---

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [January 2, 2023, 8:06am UTC](https://discuss.elastic.co/t/how-to-implement-index-rollover-properties-condition-in-es-using-spring-data-elasticsearch/322218/3 "2023-01-02T08:06:16Z")

</div>

Sure, My bad.

Thanx

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 2, 2023, 8:15am UTC](https://discuss.elastic.co/t/how-to-implement-index-rollover-properties-condition-in-es-using-spring-data-elasticsearch/322218/4 "2023-01-02T08:15:37Z")

</div>

Can you provide some additional details about the data, use case and reason to use ILM? Is the data you are creating immutable?

---

<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:** [January 30, 2023, 8:15am UTC](https://discuss.elastic.co/t/how-to-implement-index-rollover-properties-condition-in-es-using-spring-data-elasticsearch/322218/5 "2023-01-30T08:15:55Z")

</div>

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