ES query with local time timestamp
Hello there! Is it possible to perform queries to ElasticSearch using local time instead of UTC? Because all docs in ES stored with local time format.
Thanks in advanced.
I also met this problem. Have you solved this problem? @adolia
No it's not possible. Why is it a problem? If you want to specify locals times with --start and --end, you can. For example, elastalert --verbose --start 2019-04-07T12:00:00-08:00
No it's not possible. Why is it a problem? If you want to specify locals times with
--startand--end, you can. For example,elastalert --verbose --start 2019-04-07T12:00:00-08:00
But if I have two indices in Elasticsearch, the timestamp of one is stored with local time format, like 2019-04-07T12:00:00+08:00, and the timestamp of another is stored with UTC format, like 2019-04-07T12:00:00Z. How can I perform the right queries to Elasticsearch?
+1, I need to use index filebeat-%Y.%m.%d, with UTC time, the filebeat-2020.09.25 is not created when I run the rule on Sep 24 22:39:39 PDT 2020