How can fill logstash output in filebeat.yml file

This my elasticsearch output part in filebeat.yml file but I want to send logs to logstash

# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["https://172.10.110.19:9200"]
  protocol: "https"

  # Protocol - either `http` (default) or `https`.
  #protocol: "https"

  # Authentication credentials - either API key or username/password.
  #api_key: "id:api_key"
  username: "elastic"
  password: "password"
  ssl:
    enabled: true
    ca_trusted_fingerprint: "23E9D473CE99BB2C6C331F43C94DA35B3096ABA83C844AB5CB04458F95AE83BC"

# ------------------------------ Logstash Output -------------------------------
#output.logstash:
  # The Logstash hosts
  #hosts: ["localhost:5044"]

  # 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"

As I know we have to comment all parts in elasticsearch output and instead of that uncomment logstash output . So for hosts I will fill with logstash address but how should fill other parts in the elasticsearch part I used fingerprint as SSL now what should I do now in Logstash output part ?

HI,

To secure the connection between Filebeat and Logstash, modifications need to be made in both configurations. For a more in-depth understanding, it's advisable to refer to the following documentation.

https://www.elastic.co/guide/en/beats/filebeat/current/configuring-ssl-logstash.html

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