Hi All,
I am using Elasticsearch 1.7.2 and try to copy docs from one index to another index by using logstash 1.5.5
When I am doing configtest of the logstash configuration file.
bin/logstash agent --configtest --config logstash.conf
I am getting below error..
Unknown setting 'port' for elasticsearch {:level=>:error}
Error: Something is wrong with your configuration.
My configuration file details
input {
We read from the "old" index
elasticsearch {
hosts => ["localhost"]
port => "9200"
user => "admin"
password => "password"
index => "es_item"
size => 500
scroll => "5m"
docinfo => true
}
}
filter {
}
output {
We write to the "new" index
elasticsearch {
host => "localhost"
port => "9200"
protocol => "http"
user => "admin"
password => "password"
index => "es_item1"
}
We print dots to see it in action
stdout {
codec => "dots"
}
}
Please help me to fix this issue
Thanks,
Ganeshbabu R