TheHorizon
TheHorizon

Reputation: 145

Set up communication logstash with SSL using http input plugin

Mine question:

Additional questions:

What I already have:

input {
  http {
        port => "5000"
  }
  http {
        port => "5001"
        ssl => on
        keystore => "KeyStore.jks"
        keystore_password => "1qaz@WSX"
  }
}

output {
  elasticsearch {
      hosts => "elasticsearch:9200"
  }
}

Workflow:

  1. First component sent logs to first input using postman and it work fine - Response: "OK"
  2. When second component try send logs to second input: have no response (and no logs about receive request in docker-compose logs) - in postman: "Could not get any response"

Upvotes: 1

Views: 2708

Answers (1)

Praveen
Praveen

Reputation: 11

input {
http { port => "5000"
  }
http {
    port => "5001"

ssl => on => change this from on to true

keystore => "KeyStore.jks"
keystore_password => "1qaz@WSX"
}
}

output {
elasticsearch {
  hosts => "elasticsearch:9200"
 }
}

This is because ssl accepts boolean value(true or false). this will solve your issue , and it will work if you have correctly created your .jks file.

Upvotes: 1

Related Questions