Logstash multiple outputs

Hi, once I try to add multiple output.logstash as array, I don't get any data, can you please assist? Thank you
ex.

#----------------------------- Logstash output --------------------------------
output.logstash:
  # The Logstash hosts
  **hosts: ["log01.ex.com:5044","log02.ex.com:5045"]**
  # Optional SSL. By default is off.
  # List of root certificates for HTTPS server verifications
  #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]

  # Certificate for SSL client authentication
  #ssl.certificate: "/etc/pki/client/cert.pem"

  # Client Certificate Key
  #ssl.key: "/etc/pki/client/cert.key"

If that's an exact copy of your config, you should remove the ** around the hosts setting.

Hi, it's just a typo the ** around the hosts setting.

Hi, anyone can please assist?

Just to make sure: You are really not getting any data in either of these Logstash instances? With this configuration the expected behaviour would be that one gets all the data and the other gets none.

If you've more than one logstash-output - Make sure you add loadbalance: true option to output.logstash

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.