# Index Pattern using latest date

**URL:** <https://discuss.elastic.co/t/index-pattern-using-latest-date/228532>\
**Category:** Kibana\
**Created:** [April 17, 2020, 2:06pm UTC](https://discuss.elastic.co/t/index-pattern-using-latest-date/228532 "2020-04-17T14:06:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Benz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_benz/32/65581_2.png) [@Mike\_Benz](https://discuss.elastic.co/u/Mike_Benz)\
**Post date:** [April 17, 2020, 2:06pm UTC](https://discuss.elastic.co/t/index-pattern-using-latest-date/228532/1 "2020-04-17T14:06:29Z")

</div>

To start, I am a noob and am working in the Kibana interface for the system my company setup so I have standard user type rights.

I have searched high and low and can't seem to find an answer to this. I have a bunch of indexes from daily imports that span the last 3 months. They are named idx\_storage\_all\__date of import_ where the date of import is 2020.01.01, 2020.01.02, etc...

The index pattern i created was idx\_storage\_all\* and it is great for time series charts.

I would like to have a pattern that grabs just the newest dated doc to report on the data as of the last import and cant seem to find out how to do this.

I tried using the last import as of a few days ago and when i go into the dash, it still shows data from that date and not yesterdays import.

I tried to use the time field at top of the dashboard and I cant figure out how to get the last date. I tried something like 1d-now and depending on the time of the last import I may miss it if it happened say an hour ago.

So basically I want to be able to get the most current import if that makes sense?

Can someone point me to some documentation that explains what I want to do as I am not finding it.

Thx!

Mike...

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [April 22, 2020, 7:02pm UTC](https://discuss.elastic.co/t/index-pattern-using-latest-date/228532/2 "2020-04-22T19:02:37Z")

</div>

I don't think this is achievable with index patterns, but there might be other ways of doing this. I would have expected that the time range `now-1d` to `now` would be right for this: why isn't that working?

---

<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:** [May 20, 2020, 7:02pm UTC](https://discuss.elastic.co/t/index-pattern-using-latest-date/228532/3 "2020-05-20T19:02:49Z")

</div>

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