I am using Kibana 7.3.2 and plan to move to 7.15.1 maybe in the next few months after verifying a few things.
The setup:
The field I'm basing my visual upon is the @timeStamp in UTC
The dashboard's date / time picker is set to the last year
I have the Kibana time zone set to default
Access level of the user is view dashboards only (reporting_user)
I want to create the following bar charts:
- hour of day
- day of week
- date of month
- week of year
- month of year
The Problem:
Let's take day of week as an example of my issue:
Say my company HQ is in London, with scripted fields, I can do something like:
def myDate = doc['@timeStamp '].value.withZoneSameInstant(ZoneId.of('Europe/London'));
myDate.dayOfWeek;
return myDate;
NOTE: Is there another way than using scripted fields to get the value I want?
I can make the day of week bar chart visual using the result return in the above script. (i.e. count of the myDate)
Now, what happens if I'm in New York? How can I display my visuals in the HQ's (London) time zone?
My assumption of the problem: Since I am in the New York time zone (EST) , the date / time picker would select the documents based on EST for the last year. This would mean my data set would be offset by 4 hours?