In the previous example it was as follows:
mongodb://localhost:27017/exemplo? ssl=true
But ssl authorization is not enabled, I removed it and left it without ssl and presented the following error.
[2020-05-28T14:01:38,070][ERROR][logstash.javapipeline ][main] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<Sequel::DatabaseConnectionError: Java::JavaSql::SQLException: path to '/opt/logstash-mongodb/logstash_sqlite.db': 'C:\opt' does not exist>
Log error:
2020-05-28T14:01:35.748-0700 I NETWORK [listener] connection accepted from 127.0.0.1:51183 #16 (7 connections now open)
2020-05-28T14:01:35.844-0700 I NETWORK [conn16] received client metadata from 127.0.0.1:51183 conn16: { driver: { name: "mongo-ruby-driver", version: "2.12.1" }, os: { type: "mswin", name: "mswin32", architecture: "x86_64" }, platform: "2.5.7, java, java1.8" }
2020-05-28T14:01:43.471-0700 I NETWORK [conn16] end connection 127.0.0.1:51183 (6 connections now open)