However, it ended up returning the result which is not UTC+8(my timezone).
The documents shows in Kibana is the correct time which I know Kibana will do the change for me but the query result is changed back to UTC time, so the result is not correct.
How can I fix this? And in the future, I am not using Kibana to curl but a Java app, is it a problem in that situation also?
elasticsearch works in UTC. The client is responsible for adjusting times to the local timezone. For Kibana, Kibana does it. For your Java app, the app must do it.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.