Hi team,
I need a query that takes the @timestamp from the timepicker and then add an offset of 7 days. I don't know how to do it. I tried: (@timestamp <= "now-1d/d+7d")
but it's not working as I wanted.
Could someone help me, please?
Thanks!
Hi team,
I need a query that takes the @timestamp from the timepicker and then add an offset of 7 days. I don't know how to do it. I tried: (@timestamp <= "now-1d/d+7d")
but it's not working as I wanted.
Could someone help me, please?
Thanks!
Hello,
According to this topic it's not possible to add an offset to timestamp
==> Kibana Query Language - @timestamp
They talked about some alternatives that may help you... sorry if not
Sincerely,
Thanks @baddack !
I'm just wondering what this guy did here -> Lucene syntax equivalent for "Today"? Does it exist? - #4 by wylie
I did some tests and the behavior is a bit weird.
I have the same result by doing this :
@timestamp >= "now-1d/d+11h" AND @timestamp <= "now-1d/d+13h"
OR this :
@timestamp <= "now-1d/d+13h"
I tried everything but I can't go back any further than today's date at midnight !
Here another link that I found very helpful to understand :
I found it very easy to understand but in practice I couldn't get it to work beyond today's intervals
Thank you so so much! I was able to do what I wanted using that last link.
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.