# Change color when timestamp field in doc is older then 10 minutes

**URL:** <https://discuss.elastic.co/t/change-color-when-timestamp-field-in-doc-is-older-then-10-minutes/297080>\
**Category:** Kibana\
**Created:** [February 13, 2022, 5:46pm UTC](https://discuss.elastic.co/t/change-color-when-timestamp-field-in-doc-is-older-then-10-minutes/297080 "2022-02-13T17:46:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soren\_vdc](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Soren\_vdc](https://discuss.elastic.co/u/Soren_vdc)\
**Post date:** [February 13, 2022, 5:46pm UTC](https://discuss.elastic.co/t/change-color-when-timestamp-field-in-doc-is-older-then-10-minutes/297080/1 "2022-02-13T17:46:19Z")

</div>

Hi,

I'm searching for the best setup to configure a visual to display:  
green: when timestamp in doc is created in last 5 minutes  
red: when timestamp in last doc is older then 10 minutes.

Anyone any tips what visual I can use to configure this?  
thx!

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [February 22, 2022, 9:42am UTC](https://discuss.elastic.co/t/change-color-when-timestamp-field-in-doc-is-older-then-10-minutes/297080/2 "2022-02-22T09:42:09Z")

</div>

Hello, not sure what visual you have in mind, but you can try color rules in tsvb:

 ![Screenshot 2022-02-22 at 10.41.31](https://us1.discourse-cdn.com/elastic/original/3X/3/4/345cc98e3d03ba5bd1dba2c28e6ba6a725d2cd8b.png)

---

<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 22, 2022, 9:42am UTC](https://discuss.elastic.co/t/change-color-when-timestamp-field-in-doc-is-older-then-10-minutes/297080/3 "2022-03-22T09:42:55Z")

</div>

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