# How can fill logstash output in filebeat.yml file

**URL:** <https://discuss.elastic.co/t/how-can-fill-logstash-output-in-filebeat-yml-file/346556>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [November 6, 2023, 7:14pm UTC](https://discuss.elastic.co/t/how-can-fill-logstash-output-in-filebeat-yml-file/346556 "2023-11-06T19:14:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baber1223](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/baber1223/32/83533_2.png) [@baber1223](https://discuss.elastic.co/u/baber1223)\
**Post date:** [November 6, 2023, 7:14pm UTC](https://discuss.elastic.co/t/how-can-fill-logstash-output-in-filebeat-yml-file/346556/1 "2023-11-06T19:14:24Z")

</div>

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

```auto
# ---------------------------- 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 ?

---

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [November 30, 2023, 4:05pm UTC](https://discuss.elastic.co/t/how-can-fill-logstash-output-in-filebeat-yml-file/346556/2 "2023-11-30T16:05:07Z")

</div>

> [@baber1223](#):
>
> 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](https://www.elastic.co/guide/en/beats/filebeat/current/configuring-ssl-logstash.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 28, 2023, 4:05pm UTC](https://discuss.elastic.co/t/how-can-fill-logstash-output-in-filebeat-yml-file/346556/3 "2023-12-28T16:05:30Z")

</div>

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