# Index names are getting generated as 2021.53

**URL:** https://discuss.elastic.co/t/index-names-are-getting-generated-as-2021-53/265763
**Category:** Elasticsearch
**Created:** [March 1, 2021, 8:14am UTC](https://discuss.elastic.co/t/index-names-are-getting-generated-as-2021-53/265763 "2021-03-01T08:14:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![prajwalgmpp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prajwalgmpp/32/47707_2.png) [@prajwalgmpp](https://discuss.elastic.co/u/prajwalgmpp)
#### Post date: [March 1, 2021, 8:14am UTC](https://discuss.elastic.co/t/index-names-are-getting-generated-as-2021-53/265763/1 "2021-03-01T08:14:32Z")

</div>

Hi All..

The syntax for naming our indices for different applications is "application-YYYY-ww".

But we are having some indices that are getting generated as application-2021.53. And they have significant sizes too, the largest one being 37GB. So we can't ignore those indices.

Can I get an explanation on why they are getting created and how to avoid index names getting names that way?

Following is the pipeline:

```
> input {

> }
> }
> filter {
> ##a lot of application related processing
> } else {
> mutate {
> add_field => { "indexprefix" => "application_name.default.%{[fields][cluster]}-" }
> }
> mutate {
> lowercase => ["indexprefix"]
> }
> }
> }
> output {
> elasticsearch {
> hosts => []
> ssl => true
> cacert => '/etc/logstash/ssl/cl-root.crt'
> manage_template => false
> index => "%{indexprefix}%{+YYYY.ww}"
> }
> }
```

---

<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: [March 1, 2021, 9:41am UTC](https://discuss.elastic.co/t/index-names-are-getting-generated-as-2021-53/265763/2 "2021-03-01T09:41:01Z")

</div>

52 weeks of 7 days gives 364 days, so some days will end up going into an index for week 53. Exactly how many days depend on how the week aligns at the start and end of the year.

---

<div class="post-metadata">

### Author: ![prajwalgmpp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prajwalgmpp/32/47707_2.png) [@prajwalgmpp](https://discuss.elastic.co/u/prajwalgmpp)
#### Post date: [March 1, 2021, 9:42am UTC](https://discuss.elastic.co/t/index-names-are-getting-generated-as-2021-53/265763/3 "2021-03-01T09:42:30Z")

</div>

I thought so too. But this is happening with only one pipeline. Indices from other pipelines, although following the same naming convention are not getting generated as 2021.23

Also why 2021? Why aren't they getting named as 2020.53?

---

<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: [March 1, 2021, 9:44am UTC](https://discuss.elastic.co/t/index-names-are-getting-generated-as-2021-53/265763/4 "2021-03-01T09:44:36Z")

</div>

What is the content of the @timestamp field for those events?

---

<div class="post-metadata">

### Author: ![prajwalgmpp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prajwalgmpp/32/47707_2.png) [@prajwalgmpp](https://discuss.elastic.co/u/prajwalgmpp)
#### Post date: [March 1, 2021, 2:18pm UTC](https://discuss.elastic.co/t/index-names-are-getting-generated-as-2021-53/265763/6 "2021-03-01T14:18:28Z")

</div>

Curiously, I am able to see those indices under "Index Management" but I am not able to find those indices in Discover to get their timestamp. Please advise

---

<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: [March 29, 2021, 2:18pm UTC](https://discuss.elastic.co/t/index-names-are-getting-generated-as-2021-53/265763/7 "2021-03-29T14:18:51Z")

</div>

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