what are the things to change in elastic java high-level client code for moving from joda to java time ?
my current code is as below. I am using 6.8.3 elk version
I need to change code, so I can use it in elk 7.4
TimeZone timezoneID = TimeZone.getTimeZone("America/chicago");
SearchResponse response = hclient.search(new SearchRequest("metricbeat*")
.source(
new SearchSourceBuilder()
.aggregation(
AggregationBuilders.dateHistogram("mainAgg")
.field("@timestamp")
.dateHistogramInterval("1d")
.format("dd/MM/YYYY")
.timeZone(DateTimeZone.forTimeZone(timezoneID))
.minDocCount(0)
.order(BucketOrder.key(false))
)
.size(0)
), RequestOptions.DEFAULT);