Hi,
How can I specify the date histogram offset for a data table visualization in Kibana? The week aggregations start are Monday-Monday but I'd like Sunday-Sunday.
I tried putting this in the json input
{
"aggs": {
"by_week": {
"date_histogram": {
"field": "kPublishDate",
"interval": "week",
"offset": "-1d"
}
}
}
}
I'm getting this error: Visualize: Unknown key for a START_OBJECT in [2]: [aggs].
How can I change the offset for the date histogram?
Thanks!