Configuring Logstash to Accept Both SSL and Non-SSL Connections

Hi,

I'm currently working on setting up Logstash to accept both SSL and non-SSL connections from Beats. From my understanding, I would need to configure two separate Beats inputs on different ports. For example:

input {
  beats {
    port => 5044
    ssl_enabled => true
    ...
  }
  beats {
    port => 5045
    ...
  }
}

In this configuration, Logstash would accept SSL connections on port 5044 and non-SSL connections on port 5045. I would then need to configure my Beats agents to send data to the correct port depending on whether they are using SSL.

Can anyone confirm if this is the correct approach? Are there any potential issues or considerations I should be aware of?

Thank you in advance for your help.

Sounds correct to me.