How to control Time Range


(Mike W) #1

How do I control the Time Range (top right corner) from within the dashboard or Visualisation?
I'd like to have multiple graphs with different time ranges, like visualisation with count of all visits to my website since May, and separate count with visits since 2015.


(Seibel) #2

So the time range i.e. time picker is applied to all indexes equally. However, you can create a filter and a visualization can then use the filter. For example, assuming your visits have a date/time associated with it, you could isolate just the year/month into a separate field (2018-05-03 09:12:12.1111 would become 2018-05) and save that as it's own field. Then you would create a filter on that visualization that only includes items in your index that match your field and have '2018-05'.

Of course, if you need things to be dynamic - say always previous month - you could use the 'Date Range' aggregation and set it to the previous month.


(Mike W) #3

Thanks but this doesn't work as expected.
I have created a Metric Visualisation, with count as aggregation, and Bucket with Date Range aggregation set to: From: 2018, To: now.

It works as expected as long as the Time Picker in the top right corner (what's the proper name of that 'tool'? Time Range picker?) is set to Year to date. Once it is set to Last 15 minutes, it takes control over the data being displayed/count.

I have also added Date range to the filter, but the Time Picker takes control over the filter too.

Once this has been sorted out there is another outstanding issue. Even if the data will be displayed as expected, then still, the graphs get updated accordingly to the Time Picker and some of them look...well shitty because some of my graphs are set to display data for the past day only.


(Mike W) #4

Any ideas? :slight_smile:


(system) #5

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