I am back at this.
I am seating in CST time zone. most all my source are in CST time zone
but all my date field is saved in Elasticsearch as GMT time zone.
and my kibana (default setup as ) browser timezone is converting that GMT back to CST
why can't I save all my data at CST timezone and kibana takes it as is?
problem I am not having is when I run sql query it give me data on different time format. it is getting confusing.
but same thing is shows up in elastic is
h | s
------------------------+---------------
2019-12-02T00:00:00.000Z|635872.0
2019-12-02T01:00:00.000Z|128556.0
2019-12-02T02:00:00.000Z|116842.0
2019-12-02T03:00:00.000Z|126606.0
2019-12-02T04:00:00.000Z|114090.0
2019-12-02T05:00:00.000Z|127968.0 2019-12-02T06:00:00.000Z|655400.0
at 6:00 but I want that to register at same time 02-Dec-19 00:00.00.000
I can only repeat what I said earlier: Dates are always stored in UTC. You can modify your queries or use an ingestion pipeline to get your data properly converted before indexing, like it is done in the link you mentioned.
Perefect thanks. I tested it.
basically for CTS I have to use timezone => Etc/UTC and it will save my data in elasticsearch with same time and not will change to +6.
then I will have to setup kibana (all user) timezone = Etc/UTC and they will see data on same time frame.
for London data I don't have to worry because it is already in GMT and elasticsearch saves in GMT.
sounds good. quick reminder that there is daylight savings time in the UK, so make sure that is properly taken accounted for (or hopefully you can just ignore
This date timezone is so confusing.
what simply I want to do is save date field as is, the way it comes from source and tell kibana not to convert anything.
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.