# Connect FileBeat to Logstash and ES

**URL:** <https://discuss.elastic.co/t/connect-filebeat-to-logstash-and-es/199091>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 11, 2019, 2:21pm UTC](https://discuss.elastic.co/t/connect-filebeat-to-logstash-and-es/199091 "2019-09-11T14:21:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ghaith\_Haddad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghaith_haddad/32/49288_2.png) [@Ghaith\_Haddad](https://discuss.elastic.co/u/Ghaith_Haddad)\
**Post date:** [September 11, 2019, 2:21pm UTC](https://discuss.elastic.co/t/connect-filebeat-to-logstash-and-es/199091/1 "2019-09-11T14:21:42Z")

</div>

Hello everyone,

So i have filebeat configured in an apache server AWS EC2 instance and another EC2 instance which has logstash and elasticsearch. i can send log files to the ec2 instance to logstash but i can only display them on the console, like the output on the logstash config is { stdout {} }. How can i forward those files to elasticsearch and actually be able to see them or go through them i can't figure it out. Because i also have kibana setup and i need to view all the logs from the apache server and also a bunch of other servers as well.

Any help or guidance is GREATLY APPRECIATED!

Cheers!

---

<div class="post-metadata">

**Author:** ![daniel\_a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_a/32/48390_2.png) [@daniel\_a](https://discuss.elastic.co/u/daniel_a)\
**Post date:** [September 11, 2019, 10:00pm UTC](https://discuss.elastic.co/t/connect-filebeat-to-logstash-and-es/199091/2 "2019-09-11T22:00:46Z")

</div>

Just set up output in logstash.conf file on Logstash.

[https://www.elastic.co/guide/en/beats/filebeat/current/logstash-output.html](https://www.elastic.co/guide/en/beats/filebeat/current/logstash-output.html)

Then, restart the service.

---

<div class="post-metadata">

**Author:** ![daniel\_a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_a/32/48390_2.png) [@daniel\_a](https://discuss.elastic.co/u/daniel_a)\
**Post date:** [September 11, 2019, 10:43pm UTC](https://discuss.elastic.co/t/connect-filebeat-to-logstash-and-es/199091/3 "2019-09-11T22:43:07Z")

</div>

You might need to install a plugin on your Logstash:

[https://www.elastic.co/guide/en/logstash/current/plugins-inputs-beats.html](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-beats.html)

---

<div class="post-metadata">

**Author:** ![Ghaith\_Haddad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghaith_haddad/32/49288_2.png) [@Ghaith\_Haddad](https://discuss.elastic.co/u/Ghaith_Haddad)\
**Post date:** [September 13, 2019, 3:14pm UTC](https://discuss.elastic.co/t/connect-filebeat-to-logstash-and-es/199091/4 "2019-09-13T15:14:32Z")

</div>

Thank you @daniel_a for your reply, but after all that is done, how can i see or go through the log files that filebeat sent thru logstash to elastichsearch?

---

<div class="post-metadata">

**Author:** ![daniel\_a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_a/32/48390_2.png) [@daniel\_a](https://discuss.elastic.co/u/daniel_a)\
**Post date:** [September 13, 2019, 5:00pm UTC](https://discuss.elastic.co/t/connect-filebeat-to-logstash-and-es/199091/5 "2019-09-13T17:00:22Z")

</div>

Can you share your Logstash config and make sure Logstash has started correctly?

```
 sudo service logstash start (to start the service)
 sudo tail -f /var/log/syslog (to check if the service started)

```

Not sure what's your index name you created for these logs. It could be filebeat-xxxxx

---

<div class="post-metadata">

**Author:** ![Ghaith\_Haddad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghaith_haddad/32/49288_2.png) [@Ghaith\_Haddad](https://discuss.elastic.co/u/Ghaith_Haddad)\
**Post date:** [September 13, 2019, 5:59pm UTC](https://discuss.elastic.co/t/connect-filebeat-to-logstash-and-es/199091/6 "2019-09-13T17:59:40Z")

</div>

Got it, thank you very much!

---

<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:** [October 11, 2019, 5:59pm UTC](https://discuss.elastic.co/t/connect-filebeat-to-logstash-and-es/199091/7 "2019-10-11T17:59:44Z")

</div>

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