Change Time range for all widget depending of the dashboard tabs

1. Describe your incident:

I have a Dashboard for DHCP Event. I created a Page with many widget all setted to “today” time range.
I want to duplicate this page and create the same but within different time range “last week”

Why it is not possible to do that ? If I chose the glolbal time range and apply filter to all widget, it applys to all my dashboard pages and I do not want that.

2. Describe your environment:

  • Package Version: Graylog 5.1.4

3. What steps have you already taken to try and solve the problem?

I tried to change the time range for two page within the same Dashboard but it does not work.

The only workaround is to create multiple dashboard with different timerange but it will be very messy because we can’t even create a tree view and organize our dashboards…

4. How can the community help?

Is there any other ways to fix this issue ?

I’m not sure I follow. What is your expected outcome vs what is actually happening?

Dashboards have 2 places where the timerange can be set (it sounds like you are familiar):

  • individual widgets
  • global timerange for the dashboard (which applies to all widgets on all tabs in the dashboard)

I tried to change the time range for two page within the same Dashboard but it does not work.

Can you clarify what this means? Do you mean tabs (and not pages)? Are you saying changing the global timerange changes the timerange of all tabs but you do not want that?

Yes sorry I mean tabs, I don’t know why I called this Page.

Here’s one of my Dashboard:

I would like to have 2 tabs which contains the same widget, but I would like to set different time ranges.

If I set the global time range, it applys to all the widget on all the tabs, and that’s not what I want.

As I said, for now it looks like the only solution is to create multiple Dashboards for each specific time range, but in the end, I will get a couple hundred of Dashboard and it will be very unorganized and messy to find the right one quickly.

Is it possible to add the feature to set different time range for specific tab within a Dashboard ?
Or at least give us the possibility to sort all the dashboards in different folder for example.

  • What I imagine is something like this, where I can put different Dashboard in folders (example from Graphana):

Even both solution would be nice :slight_smile:

Is this something doable or already in the road map ?

Thank you !

I understand. I opened a feature request for dashboard folder organization via Add ability to organize dashboards into folders/sub-folders · Issue #16348 · Graylog2/graylog2-server · GitHub . IMO this will be more feasible than adding functionality for separate time range picker for each dashboard tab. However, feel free to open a feature req for that if you would like.

1 Like

The time range at the top is meant as an override for while you are viewing the dashboard, as Drew said the real solution is to create a second tab and then edit each widget for the new timerange in that tab.

I’ve never done it this way, but i would guess if you export the dashboard as a content pack you could change the times en mass in the content pack json file and then re-import it.

Thank you @drewmiranda-gl ! I’m sure this feature will help many people.

Yes I could do that with content-pack. But it is a bit repetitive and time consuming in a big environment with many dashboards / tabs. I hope you understand it will be easier to change directly the time range on the tabs than:

  • creating the content pack with the dashboard,
  • download it
  • edit the json,
  • find the time range fields corresponding to the target tab
  • upload it again.

I was just suggesting some ideas to maybe improve the user friendly interface

Thank you for your help, for now I will take your workaround by editing the json.

Something else that would be helpful is being able to set a global (either whole dashboard or per tab) time range that applies to all widgets. Currently you cannot do this (and save it). This makes adjusting time ranges and saving those adjusted time ranges very cumbersome (i know from experience!)

Yes this was my original request. I created the feature request on Github for this one.

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