How can i filter for certain time ranges which are not using a fixed date ?
e.g.
22:00 yesterday - 06:00 today
06:00 today - 14:00 today
14:00 today - 22:00 today
is there something like a universal date-format which is not fixing the date?
How can i filter for certain time ranges which are not using a fixed date ?
e.g.
22:00 yesterday - 06:00 today
06:00 today - 14:00 today
14:00 today - 22:00 today
is there something like a universal date-format which is not fixing the date?
Actually, yeah, the link there should have some examples on how to accomplish this.
Should be something like this:
22:00 yesterday - 06:00 today: now/d-2h
to now/d+6h
(not sure if that's exactly correct but something along those lines).
The /d
means "rounded to the nearest day" and the -2h
means "minus 2 hours".
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.