Hello,
I try to load data from mongodb to logstash but I have Infinite loop.
I use logstash 1.5.4 and mongo db 3.5.1.
My logstash configuration :
input {
mongodb {
uri => "mongodb://127.0.0.1:27017/logtest"
collection => "products"
placeholder_db_dir => 'c:/elk2/'
placeholder_db_name => 'logstash_sqlite.db'
batch_size => 1
}
}
output {
stdout { codec => rubydebug }
file {
path => "C:\elk\out.log"
}
}
This is the out put. it's an infinite loop and the data is not loaded.
D, [2018-04-18T16:41:29.295000 #9192] DEBUG -- : MONGODB | 127.0.0.1:27017 | log
test.find | SUCCEEDED | 0.007s
D, [2018-04-18T16:41:29.338000 #9192] DEBUG -- : MONGODB | 127.0.0.1:27017 | log
test.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>
{"name"=>{"$not"=>/system.|$/}}}
D, [2018-04-18T16:41:29.347000 #9192] DEBUG -- : MONGODB | 127.0.0.1:27017 | log
test.listCollections | SUCCEEDED | 0.006s
cordial regards