Hello.
I am querying my ES using Logstash.
I want to output the id of the record from ES into my csv file.
"_index": "data",
"_type": "default",
"_id": "vANfNGYB9XD0VZRJUFfy",
"_version": 1,
"_score": null,
"_source": {
....
output { csv {
fields => [ "field1", "field2", "field3", "_id"]
path => "/tmp/export.%{+YYYY-MM-dd-hh}.csv"
}
}
but the _id is never logged to my csv. All other fields are there as expected, but the special metadata _id field is not there.
How can I get it there? I do not want to edit 60+ pipelines I have just to clone one field into another.