# Canvas Time Filter When Adding Kibana Objects

**URL:** <https://discuss.elastic.co/t/canvas-time-filter-when-adding-kibana-objects/269971>\
**Category:** Kibana\
**Created:** [April 13, 2021, 7:32am UTC](https://discuss.elastic.co/t/canvas-time-filter-when-adding-kibana-objects/269971 "2021-04-13T07:32:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)\
**Post date:** [April 13, 2021, 7:32am UTC](https://discuss.elastic.co/t/canvas-time-filter-when-adding-kibana-objects/269971/1 "2021-04-13T07:32:59Z")

</div>

Hi there,

I have a Canvas with a time filter and I'm looking into adding some existing Kibana objects into my new Canvas. I see that each of the Kibana objects I add into my Canvas has line similar to this ...

savedVisualization id="32789d80-ed30-11ea-b3e4-3d45ca554330" timerange={timerange from="now-15m" to="now"}

Would it be possible to have each of this objects use the time filter I have in my Canvas?

TIA!

Azulgrana

---

<div class="post-metadata">

**Author:** ![corey.robertson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/corey.robertson/32/54611_2.png) [@corey.robertson](https://discuss.elastic.co/u/corey.robertson)\
**Post date:** [April 13, 2021, 4:55pm UTC](https://discuss.elastic.co/t/canvas-time-filter-when-adding-kibana-objects/269971/2 "2021-04-13T16:55:04Z")

</div>

The timefilter for Kibana objects and the Canvas timefilter aren't an exact match because the Canvas timefilter is tied to a specific field, whereas the Kibana object just needs a time range and then will use the default time field for that index.

You can modify your expression to put `filters |` at the beginning, and it **will** pass those filters on to the Kibana Object, and they will work, you'll just be in this weird state where you'll be using multiple time filters (the time range on the object, and the Canvas time filter). So just expand the Kibana object range out further than the Canvas Filter and it will work as expected, just the UI will show that expanded range.

It is on the Canvas roadmap to improve the filtering experience, for this very reason you mention.

---

<div class="post-metadata">

**Author:** ![Felix\_Roessel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felix_roessel/32/41623_2.png) [@Felix\_Roessel](https://discuss.elastic.co/u/Felix_Roessel)\
**Post date:** [April 13, 2021, 4:55pm UTC](https://discuss.elastic.co/t/canvas-time-filter-when-adding-kibana-objects/269971/3 "2021-04-13T16:55:19Z")

</div>

You can add Filter | at the beginning to get the canvas time filters into it.

Also have a look here for examples

> **[Kibana Canvas examples | Download now from Elastic content share](https://elastic-content-share.eu/downloads/category/kibana/kibana-canvas-examples/)**
>
> Download Kibana Canvas examples or deploy directly into your Elastic Cloud deployments. Our Kibana Canvas examples helping you to quickly start. %

---

<div class="post-metadata">

**Author:** ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)\
**Post date:** [April 13, 2021, 5:25pm UTC](https://discuss.elastic.co/t/canvas-time-filter-when-adding-kibana-objects/269971/4 "2021-04-13T17:25:40Z")

</div>

Got it, thanks @corey.robertson

---

<div class="post-metadata">

**Author:** ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)\
**Post date:** [April 13, 2021, 5:26pm UTC](https://discuss.elastic.co/t/canvas-time-filter-when-adding-kibana-objects/269971/5 "2021-04-13T17:26:20Z")

</div>

Thanks @Felix_Roessel for the help and for pointing me out to the examples

---

<div class="post-metadata">

**Author:** ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)\
**Post date:** [April 14, 2021, 5:13am UTC](https://discuss.elastic.co/t/canvas-time-filter-when-adding-kibana-objects/269971/6 "2021-04-14T05:13:11Z")

</div>

FYI, I just did some extra testing and realized the chart are still showing data based on the Kibana object filter time frame and not on the Canvas filter time frame.

---

<div class="post-metadata">

**Author:** ![corey.robertson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/corey.robertson/32/54611_2.png) [@corey.robertson](https://discuss.elastic.co/u/corey.robertson)\
**Post date:** [April 14, 2021, 1:29pm UTC](https://discuss.elastic.co/t/canvas-time-filter-when-adding-kibana-objects/269971/7 "2021-04-14T13:29:03Z")

</div>

@azulgrana Ahh yes I see it uses the Kibana Object Filter for the time range (on a chart for example), but still filters out using the Canvas Filter.

Not sure of a way to work around that right now.

---

<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:** [May 12, 2021, 1:29pm UTC](https://discuss.elastic.co/t/canvas-time-filter-when-adding-kibana-objects/269971/8 "2021-05-12T13:29:58Z")

</div>

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