How you set the id when sending files to elasticsearch? I'm using filebeat to send the logs, then to logstash then to elasticsearch. I'm using Kibana and the fields for _id show up but, I'm not sure how to change this. I'm also trying to use nifi to sends file to elasticsearch and it requires to know the id before it can successfully send to elasticsearch.
https://nifi.apache.org/docs.html the putelasticsearch processor. Identifier Attribute The name of the attribute containing the identifier for each FlowFile which is where the id part goes in.
Set the "Identifier Attribute" under Procces details for PutElasticsearchHttp. Please note that this should be flowfile attribute. Custom Flow file attributes can be added using Process UpdateAttribute.
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.