# Lumberjack input not working with beats input

**URL:** <https://discuss.elastic.co/t/lumberjack-input-not-working-with-beats-input/40478>\
**Category:** Beats\
**Created:** [January 29, 2016, 1:14pm UTC](https://discuss.elastic.co/t/lumberjack-input-not-working-with-beats-input/40478 "2016-01-29T13:14:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinay](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@abinay](https://discuss.elastic.co/u/abinay)\
**Post date:** [January 29, 2016, 1:14pm UTC](https://discuss.elastic.co/t/lumberjack-input-not-working-with-beats-input/40478/1 "2016-01-29T13:14:57Z")

</div>

Hii I was using lumberjack input to receive logs from Logstash Forwarder . Then I also used Filebeat and liked some of its properties . Now I have one server that sends logs to Logstash using Filebeat and another server that sends logs to Logstash using Logstash Forwarder. So my input section looks something like this-

input {  
beats {  
port =\> 5000  
ssl =\> true  
ssl\_certificate =\> "/etc/pki/tls/certs/logstash-forwarder.crt"  
ssl\_key =\> "/etc/pki/tls/private/logstash-forwarder.key"

```
    }
    lumberjack {
            codec => multiline {
                           pattern => "^\["
                            what => "previous"
                            negate => true
           }
            port => 5000
            ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt"
            ssl_key => "/etc/pki/tls/private/logstash-forwarder.key"
    }

```

}

But my logstash could not start . It says -

Default settings used: Filter workers: 2  
The error reported is:  
Address already in use - bind - Address already in use

If I use either only Filebeat or lumberjack things work fine . I need the two to work . How can i achieve the same ?????

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 29, 2016, 1:24pm UTC](https://discuss.elastic.co/t/lumberjack-input-not-working-with-beats-input/40478/2 "2016-01-29T13:24:10Z")

</div>

You can not have 2 TCP based inputs listening on the same port. You need to assign one of your inputs to a different port.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [January 29, 2016, 1:24pm UTC](https://discuss.elastic.co/t/lumberjack-input-not-working-with-beats-input/40478/3 "2016-01-29T13:24:27Z")

</div>

Each of those inputs requires its own port. They both cannot be bound to port 5000. Change one of them to a different port.

---

<div class="post-metadata">

**Author:** ![abinay](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@abinay](https://discuss.elastic.co/u/abinay)\
**Post date:** [January 30, 2016, 7:19am UTC](https://discuss.elastic.co/t/lumberjack-input-not-working-with-beats-input/40478/4 "2016-01-30T07:19:15Z")

</div>

thanx guys correct explanation

---

<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:** [July 5, 2017, 9:56pm UTC](https://discuss.elastic.co/t/lumberjack-input-not-working-with-beats-input/40478/5 "2017-07-05T21:56:08Z")

</div>


