# Multiple lumberjack input in single logstash instance

**URL:** <https://discuss.elastic.co/t/multiple-lumberjack-input-in-single-logstash-instance/28792>\
**Category:** Logstash\
**Created:** [September 7, 2015, 6:13pm UTC](https://discuss.elastic.co/t/multiple-lumberjack-input-in-single-logstash-instance/28792 "2015-09-07T18:13:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deb/32/46162_2.png) [@Deb](https://discuss.elastic.co/u/Deb)\
**Post date:** [September 7, 2015, 6:13pm UTC](https://discuss.elastic.co/t/multiple-lumberjack-input-in-single-logstash-instance/28792/1 "2015-09-07T18:13:16Z")

</div>

Is multiple lumberjack inputs (in different ports) supported in a single logstash instance? The config as follow:-

```
input {
# stdin { codec => json {} }
 lumberjack {
  port => 6782
  codec => json {}
  ssl_certificate => "/opt/logstash-1.5.3/cert/logstash-forwarder.crt"
  ssl_key => "/opt/logstash-1.5.3/cert/logstash-forwarder.key"
  type => "lumberjack"
 }
 lumberjack {
  port => 6783
  ssl_certificate => "/opt/logstash-1.5.3/cert/logstash-forwarder.crt"
  ssl_key => "/opt/logstash-1.5.3/cert/logstash-forwarder.key"
  type => "lumberjack"
 }
}

filter {
  if [env] != "prod" {
    drop {}
  }
  if [message] =~ /^\s*$/ {
    drop { }
  }
}

output {
  if "_jsonparsefailure" in [tags] {
    file {
      path => "/var/log/shop/parse_error/%{env}/%{app}/%{app}_%{host}_%{+YYYY-MM-dd}.log"
    }
  } else {
    kafka {
      broker_list => ["kafka:9092"]
      topic_id => "logstash_logs"
    }
  }     
}
```

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 7, 2015, 6:35pm UTC](https://discuss.elastic.co/t/multiple-lumberjack-input-in-single-logstash-instance/28792/2 "2015-09-07T18:35:51Z")

</div>

Yes. You can practically have any number of inputs of any type with the obvious restriction that they can't attempt to consume from the same file or socket.

---

<div class="post-metadata">

**Author:** ![Deb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deb/32/46162_2.png) [@Deb](https://discuss.elastic.co/u/Deb)\
**Post date:** [September 8, 2015, 3:31am UTC](https://discuss.elastic.co/t/multiple-lumberjack-input-in-single-logstash-instance/28792/3 "2015-09-08T03:31:12Z")

</div>

Thanks Magnus 🙂 .

---

<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 6, 2017, 5:29am UTC](https://discuss.elastic.co/t/multiple-lumberjack-input-in-single-logstash-instance/28792/4 "2017-07-06T05:29:49Z")

</div>


