# Lumberjack input with multiple files

**URL:** <https://discuss.elastic.co/t/lumberjack-input-with-multiple-files/1195>\
**Category:** Logstash\
**Created:** [May 22, 2015, 10:10pm UTC](https://discuss.elastic.co/t/lumberjack-input-with-multiple-files/1195 "2015-05-22T22:10:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![allenmchan](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@allenmchan](https://discuss.elastic.co/u/allenmchan)\
**Post date:** [May 22, 2015, 10:10pm UTC](https://discuss.elastic.co/t/lumberjack-input-with-multiple-files/1195/1 "2015-05-22T22:10:37Z")

</div>

Hi All,

With no stream\_identity field in multiline codec, can someone tell me how to handle multiple files coming in through lumberjack protocol? I am using Logstash 1.5 GA

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 24, 2015, 2:06am UTC](https://discuss.elastic.co/t/lumberjack-input-with-multiple-files/1195/2 "2015-05-24T02:06:41Z")

</div>

What do you want to do here, multiple stream or multiline, they are different things.

---

<div class="post-metadata">

**Author:** ![allenmchan](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@allenmchan](https://discuss.elastic.co/u/allenmchan)\
**Post date:** [May 26, 2015, 10:30pm UTC](https://discuss.elastic.co/t/lumberjack-input-with-multiple-files/1195/3 "2015-05-26T22:30:28Z")

</div>

I want to do both. I have multiple files that logstash-forwarder is sending to the logstash instance. I have to do multiline on the receiving end to handle stack tracks etc. So far i do not see any intermixing of the log from different files. I see that there are TCP connections equal to how many files i am sending. So i assume that logstash-forwarder is opening a new stream for each file and therefore there is no need for stream\_identity anymore.

---

<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:39am UTC](https://discuss.elastic.co/t/lumberjack-input-with-multiple-files/1195/4 "2017-07-06T05:39:17Z")

</div>


