Logstash takes all the collections from mongodb that has the collection string

I have a issue with the collection string in config file input. I have two collection with "properties" and "favourite_properties". When I run the mongo conf file it retrive both the collection but I wan only one

input{
mongodb{
	uri=>"mongodb://localhost:27017/ebyat"
	placeholder_db_dir => "/opt/logstash-mongodb/"
	placeholder_db_name => "logstash_sqlite.db"
	collection => "properties"
	batch_size => 5000	
}
}
filter{
	mutate{
		remove_field=>["_id"]
	}
}
output{
	stdout{
		codec => rubydebug{
				metadata => true
			}
	}
	elasticsearch{
		action => "index"		
		index => "ebyat_properties"
		hosts => ["localhost:9200"]
	}
}

Can any one have a solution please help..
Thankls In Advance

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