Elasticsearch pointer doesn't work


(NIloufar) #1

hi
i try to send one of my collection in mongodb data base to elastic search .actually elasticsearch read data over and over ,so how can i solve this and it is my conf file in logstash
input {
mongodb {
uri => 'mongodb://@127.0.0.1:/**'
placeholder_db_dir => '/tmp'
placeholder_db_name => 'sincedb.db'
collection => 'tariffs'
batch_size => 5000
}
}

filter {
date {
match => [ "logdate", "ISO8601" ]
}
}

output {
elasticsearch {
action =>"update"
doc_as_upsert => true
hosts => ["..*.:9200"]
index => "tariffs"
document_id => "%{mongo_id}"
}
stdout { codec => rubydebug}
}


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.