# Purpose of Time filter in Kibana

**URL:** https://discuss.elastic.co/t/purpose-of-time-filter-in-kibana/370986
**Category:** Kibana
**Created:** [November 23, 2024, 9:16pm UTC](https://discuss.elastic.co/t/purpose-of-time-filter-in-kibana/370986 "2024-11-23T21:16:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [November 23, 2024, 9:16pm UTC](https://discuss.elastic.co/t/purpose-of-time-filter-in-kibana/370986/1 "2024-11-23T21:16:53Z")

</div>

Hi All,

What is the significance of "Time filter" when setting up an index pattern or Data view?

![image](https://us1.discourse-cdn.com/elastic/original/3X/d/3/d32374154bd6425dce9b883ba1801b20fa25d44e.png)

When setting it up it says `Select a primary time field for use with the global time filter`

Thanks

---

<div class="post-metadata">

### Author: ![Tortoise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tortoise/32/147587_2.png) [@Tortoise](https://discuss.elastic.co/u/Tortoise)
#### Post date: [November 24, 2024, 4:58am UTC](https://discuss.elastic.co/t/purpose-of-time-filter-in-kibana/370986/2 "2024-11-24T04:58:37Z")

</div>

Hello,

As per my understanding this timestamp/timefilter will help you in reviewing the data which is indexed over time duration. As well as when you create a dashboard it will help, so if you do not select this field you will see all your data at once which might not be the ideal scenario.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [November 24, 2024, 4:12pm UTC](https://discuss.elastic.co/t/purpose-of-time-filter-in-kibana/370986/3 "2024-11-24T16:12:35Z")

</div>

> [@zaeemmasood](#):
>
> When setting it up it says `Select a primary time field for use with the global time filter`

It is the time field that will be used by the time picker to filter results in Discover, Dashboard and Curated UIs etc

---

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [November 24, 2024, 5:45pm UTC](https://discuss.elastic.co/t/purpose-of-time-filter-in-kibana/370986/4 "2024-11-24T17:45:47Z")

</div>

Thanks. Can you please elaborate this? Discover still shows @timstamp field.

So in Discover would the messages appear sorted based on “recvdTime” in my case?

Thanks

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [November 24, 2024, 6:01pm UTC](https://discuss.elastic.co/t/purpose-of-time-filter-in-kibana/370986/5 "2024-11-24T18:01:20Z")

</div>

> [@zaeemmasood](#):
>
> So in Discover would the messages appear sorted based on “recvdTime” in my case?

To be precise the discover results will be filtered by `recvdTime` and in general the default sorting is by the data view time field, but you can sort by other fields once the data is brought back.

> **[Create a data view | Kibana Guide \[8.16\] | Elastic](https://www.elastic.co/guide/en/kibana/current/data-views.html)**

> **[Discover | Kibana Guide \[8.16\] | Elastic](https://www.elastic.co/guide/en/kibana/current/discover.html)**

I suggest rolling up your sleeves and getting in there and try it.

You can create 2 dataviews... one on with `@timestamp` and one with `recvdTime` and compare and look at the differences...

> [@zaeemmasood](#):
>
> Discover still shows @timestamp field.

if it still in the first column then you probably did not set up the Data View Correctly

Also Setting the time field in the data view DOES not remove any fields so `@timestamp` will still be available.

See example below I created a data view with the time field set to `event.ingested`

 ![Screenshot 2024-11-24 at 10.03.20 AM](https://us1.discourse-cdn.com/elastic/original/3X/a/8/a84c7ba50c3cdbfea61194180543dabd20fb744a.png)

And then Discover filters and displays `event.ingested`

 ![Screenshot 2024-11-24 at 10.03.11 AM](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a4c0c272309d2591f1e02c69a74afa69fc946c48.jpeg)

---

<div class="post-metadata">

### Author: ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)
#### Post date: [November 25, 2024, 9:16pm UTC](https://discuss.elastic.co/t/purpose-of-time-filter-in-kibana/370986/6 "2024-11-25T21:16:49Z")

</div>

Thanks!
