With the aggregation below and using ES5, I'd like to get the dayOfWeek & hourOfDay based on a given timezone (supplied as an identifier from the TZ database).
How can I edit "doc['created'].date.dayOfWeek'
to adjust for the offset?
aggs: {
dayOfWeek: {
terms: {
script: {
inline: "doc['created'].date.dayOfWeek",
lang: 'painless',
},
},
aggs: {
hourOfDay: {
terms: {
script: {
inline: "doc['created'].date.hourOfDay",
lang: 'painless',
},
},
},
},
},
},
Variable [DateTimeZone] is not defined.
even withorg.joda.*
in myjava.policy
file. I'm no java dev but sn'tjava.time.zone
already included by default? (Based on: elastic.co/guide/en/elasticsearch/reference/master/…) – Tremolite