# I want to show in kibana today's index YYYY-MM-DD by default

**URL:** https://discuss.elastic.co/t/i-want-to-show-in-kibana-todays-index-yyyy-mm-dd-by-default/198065
**Category:** Kibana
**Created:** [September 4, 2019, 2:23pm UTC](https://discuss.elastic.co/t/i-want-to-show-in-kibana-todays-index-yyyy-mm-dd-by-default/198065 "2019-09-04T14:23:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![O\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/o_k/32/52424_2.png) [@O\_K](https://discuss.elastic.co/u/O_K)
#### Post date: [September 4, 2019, 2:23pm UTC](https://discuss.elastic.co/t/i-want-to-show-in-kibana-todays-index-yyyy-mm-dd-by-default/198065/1 "2019-09-04T14:23:23Z")

</div>

Hi there,  
I want to show in kibana today's index YYYY-MM-DD as default.  
Meaning, each day default index will be as of today date.

Please let me know what is the proper way to do this

Thank you,  
OK

---

<div class="post-metadata">

### Author: ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)
#### Post date: [September 4, 2019, 8:22pm UTC](https://discuss.elastic.co/t/i-want-to-show-in-kibana-todays-index-yyyy-mm-dd-by-default/198065/2 "2019-09-04T20:22:40Z")

</div>

Hello,

You could potentially set up an Index Alias as described in [this thread](https://discuss.elastic.co/t/picking-latest-index-in-kibana-dashboard/192945/2). Would that work for you?

Regards,  
Aaron

---

<div class="post-metadata">

### Author: ![O\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/o_k/32/52424_2.png) [@O\_K](https://discuss.elastic.co/u/O_K)
#### Post date: [September 5, 2019, 7:05am UTC](https://discuss.elastic.co/t/i-want-to-show-in-kibana-todays-index-yyyy-mm-dd-by-default/198065/3 "2019-09-05T07:05:29Z")

</div>

Thank you, @Aaron_Caldwell

It's very close, I'd like to have this automated let's say on daily basis, so everyday would be

> latest\_somestaticname=$(today)

```
POST /_aliases
{
    "actions" : [
        { "add" : { "index" : "somestaticname-$(today)", "alias" : "latest_somestaticname" } }
    ]
}

```

Do you see the preferred option how to achieve this?

Thanks in advance

---

<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: [October 3, 2019, 7:05am UTC](https://discuss.elastic.co/t/i-want-to-show-in-kibana-todays-index-yyyy-mm-dd-by-default/198065/4 "2019-10-03T07:05:30Z")

</div>

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