# Latest known value of a metric

**URL:** <https://discuss.elastic.co/t/latest-known-value-of-a-metric/208772>\
**Category:** Kibana\
**Created:** [November 20, 2019, 8:36pm UTC](https://discuss.elastic.co/t/latest-known-value-of-a-metric/208772 "2019-11-20T20:36:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtudisco](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@mtudisco](https://discuss.elastic.co/u/mtudisco)\
**Post date:** [November 20, 2019, 8:36pm UTC](https://discuss.elastic.co/t/latest-known-value-of-a-metric/208772/1 "2019-11-20T20:36:53Z")

</div>

Hi, i have a dashboard where i want to show a metric, that metric is collected every hour, the configuration is:

Metric Aggregation: Top Hit  
Field: your\_field  
Aggregate with: concatenate  
Size: 1  
Sort on: @timestamp  
Order: Descending

it works fine when the date filter i select a range greater than 1hr, however when i select for instance las 15min i dont get any data. Is there some way to make the metric to ignore the date filter and show the last known value and show date of that value?

thanks

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [November 21, 2019, 3:08am UTC](https://discuss.elastic.co/t/latest-known-value-of-a-metric/208772/2 "2019-11-21T03:08:09Z")

</div>

If your metric is only collected hourly, a shorter value for the date range would often not contain a collected item. You will get the last known value for any range \> 1 hour (unless the collector isn't working)

Would it be possible to collect the metric more frequently?

---

<div class="post-metadata">

**Author:** ![mtudisco](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@mtudisco](https://discuss.elastic.co/u/mtudisco)\
**Post date:** [November 21, 2019, 12:23pm UTC](https://discuss.elastic.co/t/latest-known-value-of-a-metric/208772/3 "2019-11-21T12:23:30Z")

</div>

Thanks Len for the reply, i can get the metric more frequently but as it changes only a couple of times a day i would overload the system collecting the metric more often.

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:** [December 19, 2019, 12:23pm UTC](https://discuss.elastic.co/t/latest-known-value-of-a-metric/208772/4 "2019-12-19T12:23:36Z")

</div>

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