I have one index (index1) with columns "name" and "id" and the other index (index2) with columns "resume" and "id".
"id" is the common field between two indexes.
How can I merge or combine them together so I get one index (index3) with columns "name", "resume", "id".
When I say combine, it means if I have data in index1 as
"name": "Mike"
"id": 123
and I have data in index 2 as
"resume": "looks for ...bla bla bla.."
"id": 123
This is what I want in index 3 as a result of combining index1 and index2:
index3:
"name": "Mike"
"id": 123
"resume": "looks for ...bla bla bla.."
I am using the following configuration but I am getting "connection refused" error:
input {
elasticsearch {
hosts => "localhost"
user => "abc"
password => "abc1"
index => "twitter1"
size => 500
scroll => "5m"
docinfo => true
}
}
output {
elasticsearch {
document_id => "%{[@metadata][_id]}"
hosts => "localhost"
ssl_certificate_verification => "true"
index => "twitter3"
user => "abc"
password => "abc1"
}
}
I think the issue is "hosts" in elasticsearch in input, but I don't know what to put there.
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.