How to automatically change the time filter of embedded elements in Canvas

I added the element from the saved library as :

Add Element -> Add from Kibana -> Selected the element to add

enter image description here

The time filter inserted from canvas has a time set to Last 90 days, as can be seen in the image below, whereas the element added from Kibana has a time set to Last 7 days.

enter image description here

Based on this answer, I tried to prepend filters | savedLens ... in the expression window of the element added from Kibana. But it's not working.

I want the new time to be applied to every element of the canvas if the time is changed using the dropdown of the time filter (even though the elements are added from Kibana like Map, Chart, etc)

Can anyone please help me resolve this issue?

@wylie @Marco_Liberati could you please help me out with this question ?

Hi @bhavya ,

the trick is to set the Lens time range to a very big value (say 6 months) and then use the time picker with lower values than that (in your case 90 days is less than 6 months). This is a limit of the feature right now.

1 Like

Thanks @Marco_Liberati , this really worked like a charm :slightly_smiling_face:

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