I want to store the value of auto-generated id(_id) that I see in Kibana into "ResolutionId". I've tried by using copy in mutate plugin but it doesn't stoe the value. Can someone please help me to achieve this?
The _id is generated when the data is ingested into Elasticsearch.
What you can do is define an ingest pipeline in Elasticsearch that copies the _id to ResolutionID.
Or you can try and update the mapping of your destination index and use the copy_to parameter to copy the _id to ResolutionId
I have not tested this but the query for the mapping may look something like this:
Another option would be to assigned the document id in the elasticsearch output. This might give you extra flexibility to control it before being ingested into 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.