# Life cycle of a log submitted to elastic search

**URL:** <https://discuss.elastic.co/t/life-cycle-of-a-log-submitted-to-elastic-search/350605>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [January 8, 2024, 4:03pm UTC](https://discuss.elastic.co/t/life-cycle-of-a-log-submitted-to-elastic-search/350605 "2024-01-08T16:03:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![minh.tran](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@minh.tran](https://discuss.elastic.co/u/minh.tran)\
**Post date:** [January 8, 2024, 4:03pm UTC](https://discuss.elastic.co/t/life-cycle-of-a-log-submitted-to-elastic-search/350605/1 "2024-01-08T16:03:36Z")

</div>

When a log is submitted to Elasticsearch, I was wondering what is the lifecycle.

We specify the index format so we know which view it'll be picked up in kibana.

But when does it get indexed, how do we know which which index applied and if any index template was applied. My main goal is to see if the life cycle policies that were created for my index templates are still applying to everything being submitted.

---

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [January 10, 2024, 9:59am UTC](https://discuss.elastic.co/t/life-cycle-of-a-log-submitted-to-elastic-search/350605/2 "2024-01-10T09:59:23Z")

</div>

Hi,

To check index template and ILM, you can run the following commands:

```auto
GET /<index-name>/_component_template 
GET /<index-name>/_ilm/explain

```

Regards

---

<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:** [February 7, 2024, 9:59am UTC](https://discuss.elastic.co/t/life-cycle-of-a-log-submitted-to-elastic-search/350605/3 "2024-02-07T09:59:43Z")

</div>

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