I am looking for Replica of Default NOW() (MYSQL) in elasticsearch.As _timestamp has been removed in the higher version,how we do this in 6.X
{
"properties":{
"defautlt_time":{
"type":"date",
"default_value":"current_now()" --> this will the current time ,need to indexed by ES by default,is there any way to achieve this
}
}
}
The drawback here is, that when doing the insert I need to add the ?pipeline=my_pipeline at the end of my REST call. This is not always possible when using an external service.
There is a discussion about default pipelines, which would solve this, but as far as I know, this is not shipped yet:
When you have control on the calling side, you most likely could use the ingest node as mentioned above. This should not require log stash.
In my case this does not work (as I can not modify the REST call for a new entry to Elasticsearch) thus I am still searching for another option ... I did not mention that there is one.
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.