Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect using certificate or .pem file in SSL #86

Open
aki83reo opened this issue Dec 15, 2017 · 0 comments
Open

Cannot connect using certificate or .pem file in SSL #86

aki83reo opened this issue Dec 15, 2017 · 0 comments

Comments

@aki83reo
Copy link

###################################GENERAL APPROACH I TRIED TO CONNECT AT FIRST #########
input {
mongodb {
uri => 'mongodb://localhost:27017/mydb'
placeholder_db_dir => '/opt/logstash-mongodb'
placeholder_db_name => 'logstash_sqlite.db'
collection => 'transactions'
parse_method => "dig"
unpack_mongo_id => true
batch_size => 5000
}

  }

output {
elasticsearch {
hosts => "http://localhost:9200/"
index => "trans"
document_type => "tran1"
document_id => "%{[_id]}"
}
stdout {codec => rubydebug}

##################################Mongo : NoServerAvailable ......#################

###############i tried to introduce "beats" to include my port and cert file data's , but failed , below is my trial , if admin could look at this issue ...

input {
beats{
port=>27017
ssl=>true
ssl_certificate_authorities => ["F:/es_mdb_kbn/my.crt"]
ssl_certificate => "F:/es_mdb_kbn/my.ca-bundle"
ssl_key => "F:/Python27/mongodb.pem"
ssl_verify_mode => "force_peer"
}
mongodb {
uri => 'mongodb://uname:[email protected]:27017/my_db'
placeholder_db_dir => '/opt/logstash-mongodb'
placeholder_db_name => 'logstash_sqlite.db'
collection => 'transactions'
parse_method => "dig"
unpack_mongo_id => true
batch_size => 5000
}

  }

output {
elasticsearch {
hosts => "http://localhost:9200/"
index => "trans"
document_type => "tran1"
document_id => "%{[_id]}"
}
stdout {codec => rubydebug}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant