GET _xpack/sql?format=txt
{
"query" :""" select level
from "default-*" where
queueName='ASPY_001_0200_RecogidaDatosGISS' and (transactionStatus='2' or transactionStatus = '3') and
timeStamp = "now-1d/d" """
}
I need the query to automatically extract the date every day, i dont know if its possible, but if is possible if someone can help me I appreciate it
@Diego_Benito Indeed, as @dadoonet already mentioned CURRENT_DATE and CURRENT_TIME should be used in this case. Also, you can perform date math operations using intervals, like in this example here.
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.