I want to create a scripted field that returns the "_id" field value, in order to visualize it in a table with the information of each log, but I'm not being able to solve it so far.
I tried to do it using params['_id'] (that returns "-") and doc['_id'].value (that obviously returns an error).
Do anyone know how to do it?
Thank you so much in advance for your help.
I'm using the version 5.2.2, and with doc['_id'].value I got this error: "Field Data access on the _uid field is disallowed". So, I changed it for doc['_iud'].value and now it works.
P.D: This one gives me the type name and the id, so I splited the string to have only the_Id.
And I couldn't be able to use the _id field directly as a new split row because it doesn't show up in "aggregation => terms => seleted field" =(
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.