# Data does not change after changing timestamp for kibana dashboard

**URL:** <https://discuss.elastic.co/t/data-does-not-change-after-changing-timestamp-for-kibana-dashboard/320641>\
**Category:** Kibana\
**Tags:** kql-kibana-query-language\
**Created:** [December 7, 2022, 4:58am UTC](https://discuss.elastic.co/t/data-does-not-change-after-changing-timestamp-for-kibana-dashboard/320641 "2022-12-07T04:58:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [December 7, 2022, 4:58am UTC](https://discuss.elastic.co/t/data-does-not-change-after-changing-timestamp-for-kibana-dashboard/320641/1 "2022-12-07T04:58:00Z")

</div>

Hi I've imported a kibana dashboard to another using ansible playbook. After importing I've changed the index for the dashboard, since the index for the imported dashboard does not exist. Ev erything works fine after changing the index. But when i change the date timestamp here the data is not changing accordingly. For example this dashboard is for giving count of successfull and failed jenkins jobs. So even after changing the time to last 15 minutes it is showing me data of last week. When i try to edit the dashboard inside there is no option as shown in the image below for dat timestamp setting

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

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [December 7, 2022, 5:03am UTC](https://discuss.elastic.co/t/data-does-not-change-after-changing-timestamp-for-kibana-dashboard/320641/2 "2022-12-07T05:03:51Z")

</div>

Even when i create a dashboard from scratch i'm facing same problem. There is no setting for date time while editing dashboard.

---

<div class="post-metadata">

**Author:** ![Venkata\_Raja](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/venkata_raja/32/114264_2.png) [@Venkata\_Raja](https://discuss.elastic.co/u/Venkata_Raja)\
**Post date:** [December 7, 2022, 5:07am UTC](https://discuss.elastic.co/t/data-does-not-change-after-changing-timestamp-for-kibana-dashboard/320641/3 "2022-12-07T05:07:58Z")

</div>

Hi Neelam,

Dashboards will be created on data views , and every data view will be associated with a timestamp field when creating it. Dashboard time selector will work with that timestamp only.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/9/49e205a43980cb5ac7b93e82480758945bf1c7d3.png)

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [December 7, 2022, 5:21am UTC](https://discuss.elastic.co/t/data-does-not-change-after-changing-timestamp-for-kibana-dashboard/320641/4 "2022-12-07T05:21:43Z")

</div>

Ok. I am currently creating the index from the cli using

```auto
curl -X PUT "elastic_ip:9200/index_name?pretty" -u name:pwd
#create data view
curl -X POST "elastic_ip:5601/api/data_views/data_view" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
  "data_view": {
     "title": "index_name",
     "name": "index_name"
  }
}
' -u username:pwd
#import dashboard
curl -X POST "elastic_ip:5601/api/saved_objects/_import?createNewCopies=true" -H "kbn-xsrf: true" --form file=@./export.ndjson -u username:pwd

```

How can i add timestamp to this? new to this.

---

<div class="post-metadata">

**Author:** ![Venkata\_Raja](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/venkata_raja/32/114264_2.png) [@Venkata\_Raja](https://discuss.elastic.co/u/Venkata_Raja)\
**Post date:** [December 7, 2022, 5:30am UTC](https://discuss.elastic.co/t/data-does-not-change-after-changing-timestamp-for-kibana-dashboard/320641/5 "2022-12-07T05:30:37Z")

</div>

```auto
curl -X POST "elastic_ip:5601/api/data_views/data_view" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
  "data_view": {
     "title": "index_name",
     "name": "index_name",
     "timeFieldName": "Timestamp"

}
}
' -u username:pwd

```

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [December 7, 2022, 5:31am UTC](https://discuss.elastic.co/t/data-does-not-change-after-changing-timestamp-for-kibana-dashboard/320641/6 "2022-12-07T05:31:19Z")

</div>

How can i add it to the index? the first field

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [December 7, 2022, 5:35am UTC](https://discuss.elastic.co/t/data-does-not-change-after-changing-timestamp-for-kibana-dashboard/320641/7 "2022-12-07T05:35:00Z")

</div>

First i'm having jenkins send logs to the index

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/2/82ad32a3180a815d3c3d00db542f2d618f1cd8da.png)  
Next i am creating indec using curl -x put command. and then data view. So i need to add timestamp to the url in jenkins configuration and index right? whilecreating data view i can just add a -\*?

---

<div class="post-metadata">

**Author:** ![Venkata\_Raja](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/venkata_raja/32/114264_2.png) [@Venkata\_Raja](https://discuss.elastic.co/u/Venkata_Raja)\
**Post date:** [December 7, 2022, 5:38am UTC](https://discuss.elastic.co/t/data-does-not-change-after-changing-timestamp-for-kibana-dashboard/320641/8 "2022-12-07T05:38:05Z")

</div>

Create data view with time timestamp filed by which you are deciding last 15 minutes data or last 30 minutes data.Just check your index it have some time field generated by jenkins when build was triggered . Use that to create data view

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [December 7, 2022, 5:42am UTC](https://discuss.elastic.co/t/data-does-not-change-after-changing-timestamp-for-kibana-dashboard/320641/9 "2022-12-07T05:42:19Z")

</div>

Worked !! Thank you so much for the quick response and fix!

---

<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:** [January 4, 2023, 5:43am UTC](https://discuss.elastic.co/t/data-does-not-change-after-changing-timestamp-for-kibana-dashboard/320641/10 "2023-01-04T05:43:16Z")

</div>

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