# How can I share Kibana Dashboard to customers with time filter?

**URL:** https://discuss.elastic.co/t/how-can-i-share-kibana-dashboard-to-customers-with-time-filter/181851
**Category:** Kibana
**Created:** [May 20, 2019, 2:32pm UTC](https://discuss.elastic.co/t/how-can-i-share-kibana-dashboard-to-customers-with-time-filter/181851 "2019-05-20T14:32:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![grad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grad/32/23492_2.png) [@grad](https://discuss.elastic.co/u/grad)
#### Post date: [May 20, 2019, 2:32pm UTC](https://discuss.elastic.co/t/how-can-i-share-kibana-dashboard-to-customers-with-time-filter/181851/1 "2019-05-20T14:32:50Z")

</div>

Hi all!!!  
I would like to share my dashboards with my customers... but I can't find many customization options...  
When I embed the dashboard in HTML page after clicking SHARE --\> EMBED CODE --\> SAVED OBJECT the embedded dashboard doesn't have the time filter ... why?  
I would like to remove "add filter" and add the time filter... is it possibile?

thanks...

grad

---

<div class="post-metadata">

### Author: ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)
#### Post date: [May 20, 2019, 7:47pm UTC](https://discuss.elastic.co/t/how-can-i-share-kibana-dashboard-to-customers-with-time-filter/181851/2 "2019-05-20T19:47:52Z")

</div>

The URL it provides should have the _current time filter_ (and any other filters) automatically applied. You can see this in the `src` for the iframe that is added to your clipboard:

```auto
<iframe src="http://localhost:5601/app/kibana#/dashboard/edf84fe0-e1a0-11e7-b6d5-4dc382ef7f5b?embed=true&_g=(refreshInterval%3A(pause%3A!f%2Cvalue%3A900000)%2Ctime%3A(from%3Anow-7d%2Cto%3Anow))" height="600" width="800"></iframe>

```

Note the `_g` part of the URL, those are the "global" settings that should be applied. As you can hopefully see in that example, there is a "from" and "to" value for time (`time%3A(from%3Anow-7d%2Cto%3Anow)`). This is a RISON-encoded javascript object, setting "from" to "now-7d" and "to" to "now", meaning it will show the last 7 days of data.

If you pick the desired time range before generating the share code, you'll get that range by default. Alternatively, you can also update the value by modifying the times in the URL by hand. If you want to do this in code, [rison-node](https://www.npmjs.com/package/rison-node) is what we use to decode and encode the settings object.

---

<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: [June 17, 2019, 7:48pm UTC](https://discuss.elastic.co/t/how-can-i-share-kibana-dashboard-to-customers-with-time-filter/181851/3 "2019-06-17T19:48:02Z")

</div>

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