Hi,
I need to get data on the Canvas for current month only.
Can someone help with the SQL query on Canvas similar to the KQL below.
@timestamp > "now/M" and @timestamp <= "now"
Hi,
I need to get data on the Canvas for current month only.
Can someone help with the SQL query on Canvas similar to the KQL below.
@timestamp > "now/M" and @timestamp <= "now"
This should work:
WHERE timestamp > DATE_TRUNC('month', NOW()) and timestamp <= NOW()
Thanks a ton
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.