# Add "time" chart on kibana

**URL:** <https://discuss.elastic.co/t/add-time-chart-on-kibana/287271>\
**Category:** Kibana\
**Created:** [October 21, 2021, 8:08am UTC](https://discuss.elastic.co/t/add-time-chart-on-kibana/287271 "2021-10-21T08:08:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![christbiz86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christbiz86/32/96164_2.png) [@christbiz86](https://discuss.elastic.co/u/christbiz86)\
**Post date:** [October 21, 2021, 8:08am UTC](https://discuss.elastic.co/t/add-time-chart-on-kibana/287271/1 "2021-10-21T08:08:04Z")

</div>

hi all, i want adding time chart like the screenshot. kibana only show the "document" field ony. i've add the index pattern and it doesn't work. any help please!

 ![Untitled](https://us1.discourse-cdn.com/elastic/original/3X/b/4/b4a3692516074cd33db3ad09f5fce59d63526295.png)

my kibana currently

 ![Untitled1](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c151cce5bd0f1e3e0c5ceb492c105631713f7422.png)

---

<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:** [October 21, 2021, 9:41am UTC](https://discuss.elastic.co/t/add-time-chart-on-kibana/287271/2 "2021-10-21T09:41:03Z")

</div>

Hi @christbiz86 and welcome to the community. If you take a look at the query bar, you'll see that you don't have a time picker visible. That means you haven't defined a default time field for your index pattern. Does your data have a timestamp field?If so, make sure to choose it when adding an index pattern in Management page.

---

<div class="post-metadata">

**Author:** ![christbiz86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christbiz86/32/96164_2.png) [@christbiz86](https://discuss.elastic.co/u/christbiz86)\
**Post date:** [October 21, 2021, 10:00am UTC](https://discuss.elastic.co/t/add-time-chart-on-kibana/287271/3 "2021-10-21T10:00:24Z")

</div>

Hi @Marta_Bondyra thank you for your information.

 ![Untitled](https://us1.discourse-cdn.com/elastic/original/3X/e/1/e16a8d85672827480ab8408528ac2c67d2ab24ec.png)

i have a timestamp field. i also already adding an index pattern

 ![Untitled1](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c114a138b739ff03284edf004e9dff28765d3b7e.png)

on discover page it shows blank page

 ![Untitled2](https://us1.discourse-cdn.com/elastic/original/3X/c/6/c62f7ede469d03d958caa77e7d21865bb4ccfbc7.png)

please your help

---

<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:** [October 21, 2021, 11:17am UTC](https://discuss.elastic.co/t/add-time-chart-on-kibana/287271/4 "2021-10-21T11:17:04Z")

</div>

Can it be that you have no data in this time range (last 1 year)? You could try to expand it to more (last 15 years etc) and see what's there.

Or even better, you could try to get the documents you have in your index via dev tools and see what timestamps you have. In your case the call would be:

```auto
GET site*/_search/
{
  "query": {
    "match_all": {}
  },
  "fields": [
    "@timestamp"
  ],
  "_source": false
}

```

Here's an example:

 ![Screenshot 2021-10-21 at 13.15.39](https://us1.discourse-cdn.com/elastic/original/3X/5/b/5ba4891b520066c01a41adff6d7eb94e3c6b08f6.png)

---

<div class="post-metadata">

**Author:** ![christbiz86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christbiz86/32/96164_2.png) [@christbiz86](https://discuss.elastic.co/u/christbiz86)\
**Post date:** [October 22, 2021, 3:35am UTC](https://discuss.elastic.co/t/add-time-chart-on-kibana/287271/5 "2021-10-22T03:35:04Z")

</div>

Here i shared the API response

 ![Untitled](https://us1.discourse-cdn.com/elastic/original/3X/2/2/22a6d1c2696957619535d85ca478e5e29eb9cfa5.png)

it shows have 2 data in this time range

---

<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:** [October 22, 2021, 6:11am UTC](https://discuss.elastic.co/t/add-time-chart-on-kibana/287271/6 "2021-10-22T06:11:20Z")

</div>

Ok, so looking at your logs looks like your entries are older than one year. In Discover, modify the time picker to two years and you should see your entries and a chart.  
 ![Screenshot 2021-10-22 at 08.11.04](https://us1.discourse-cdn.com/elastic/original/3X/a/0/a0e80474332467808eb391f461b2d7c4b2f50283.png)

---

<div class="post-metadata">

**Author:** ![christbiz86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christbiz86/32/96164_2.png) [@christbiz86](https://discuss.elastic.co/u/christbiz86)\
**Post date:** [October 22, 2021, 6:31am UTC](https://discuss.elastic.co/t/add-time-chart-on-kibana/287271/7 "2021-10-22T06:31:24Z")

</div>

woahh you did it.. thank you @Marta_Bondyra for your helps

---

<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:** [November 19, 2021, 6:32am UTC](https://discuss.elastic.co/t/add-time-chart-on-kibana/287271/8 "2021-11-19T06:32:17Z")

</div>

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