gpt4 book ai didi

mongodb - 使用logstash elasticsearch的mongodb输入插件

转载 作者:行者123 更新时间:2023-12-02 22:40:40 25 4
gpt4 key购买 nike

运行conf文件时出现此错误

D:\elastic search\logstash-1.5.3\bin>logstash -f mongo.conf
io/console not supported; tty will not be manipulated
Warning: No private key present, creating unsigned gem.
The error reported is:
No connection string specified

这是我的conf文件
input {
mongodb {
uri => 'mongodb://root:root@localhost:27017/mydb'
path => '/opt/logstash-mongodb/logstash_sqlite.db'
collection => 'bike'
port => 27017
unpack_mongo_id => true
batch_size => 5000
}
}

最佳答案

URI已在主机(localhost:27017)后的端口中指定,不再需要“端口”。尝试使用SSL作为mongodb:// username:password @ host:port / db?ssl = true来访问URI

关于mongodb - 使用logstash elasticsearch的mongodb输入插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31853053/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com