Can someone show me whats wrong with the config here. I am trying to convert my logstast 1.5.4 config to logstash 2. When I run it with --configtest flag, I get message 'Configuration is Ok'. and when I run the logstash agent with this config, index is not created. Any help will be greatly appreciated.
input {
couchdb_changes {
db => "roles"
hosts => ["127.0.0.1:5984"]
sequence_path => "seq_files\roles_couchdb_seq"
tags => ["roles"]
}
}
output {
if "roles" in [tags] {
elasticsearch {
document_id => "%{[@metadata][_id]}"
hosts => ["127.0.0.1:9200"]
index => "roles_index"
}
}
}
{:timestamp=>"2015-11-02T09:38:52.904000-0500", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::CouchDBChanges db=>"roles", host=>"127.0.0.1:5984", sequence_path=>"seq_files\\roles_couchdb_seq", tags=>["roles"], codec=><LogStash::Codecs::Plain charset=>"UTF-8">, port=>5984, secure=>false, password=>, heartbeat=>1000, keep_revision=>false, ignore_attachments=>true, always_reconnect=>true, reconnect_delay=>10>\n Error: bad component(expected host component): 127.0.0.1:5984\n Exception: URI::InvalidComponentError\n
Did the acceptable values for the host parameter change between 1.5.x and 2.0? The documentation doesn't mention support for specifying the port number.
Do you mean my config should be like this:
input {
couchdb_changes {
db => "roles"
host => "127.0.0.1"
sequence_path => "seq_files\roles_couchdb_seq"
tags => ["roles"]
}
}
output {
if "roles" in [tags] {
elasticsearch {
document_id => "%{[@metadata][_id]}"
hosts => ["127.0.0.1:9200"]
index => "roles_index"
}
}
}
how would it get data from couchdb if port number is dropped?
I am seeing deleted documents as well in my indices. Would these be coming from couchdb Do I need to filter those in logstash config file. How can I do that?
"I am seeing deleted documents as well in my indices. Would these be coming from couchdb Do I need to filter those in logstash config file. How can I do that?"
will really appreciate any help, thanks.
There is/was an issue where the document source is being sent with a delete command (this should not be so). This causes deletes to not work correctly.
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.