I have a requirement that has to add one of the field value in the documet to _id value using logstash while indexing.
Ex:
{
This the document coming to Elasticsearch using logstash.
_id : 1
“coloum_XXXX": 10000032,
"rowid_XXXX": 222333
"name": "John Doe”,
"City": “Sanjose”,
"Postal": 5601,
"address": “65 Reo Robles"
}
We have to provide rowid no(value) to _id (Value)
We have to convert this to
{
_id: 222333
“coloumn_XXXX": 10000032,
"rowid_XXXX": 222333
"name": "John Doe”,
"City": “Sanjose”,
"Postal": 5601,
"address": “65 Reo Robles"
}
Please do neadfull.
Thanks,
Venkatesh.