# Logstash Forwarder forwarding multiple files, ends up jammed together in one single entry

**URL:** <https://discuss.elastic.co/t/logstash-forwarder-forwarding-multiple-files-ends-up-jammed-together-in-one-single-entry/51646>\
**Category:** Logstash\
**Created:** [June 2, 2016, 6:38am UTC](https://discuss.elastic.co/t/logstash-forwarder-forwarding-multiple-files-ends-up-jammed-together-in-one-single-entry/51646 "2016-06-02T06:38:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nww\_Pot\_Fung\_Nng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nww_pot_fung_nng/32/128628_2.png) [@Nww\_Pot\_Fung\_Nng](https://discuss.elastic.co/u/Nww_Pot_Fung_Nng)\
**Post date:** [June 2, 2016, 6:38am UTC](https://discuss.elastic.co/t/logstash-forwarder-forwarding-multiple-files-ends-up-jammed-together-in-one-single-entry/51646/1 "2016-06-02T06:38:35Z")

</div>

Hi,

I have forwarder monitoring on multiple files.

"files": [  
{  
"paths": ["/tmp/file1\*.log"],"fields": { "server":"server1" }  
}, {  
"paths": ["/tmp/file2\*.log"],"fields": { "server":"server2" }  
}, {  
"paths": ["/tmp/file3\*.log"],"fields": { "server":"server3" }  
}  
]

In the downstream, the logstash process is running on another server.

My problem is that sometime I can see a single record in elasticsearch contains log contents from the 3 different upstream files.

How is it possible and how to avoid it?

Regards,  
Pot

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [June 2, 2016, 1:47pm UTC](https://discuss.elastic.co/t/logstash-forwarder-forwarding-multiple-files-ends-up-jammed-together-in-one-single-entry/51646/2 "2016-06-02T13:47:17Z")

</div>

Logstash-forwarder is deprecated. Please use [filebeat](https://www.elastic.co/products/beats) instead.

---

<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, 4:54am UTC](https://discuss.elastic.co/t/logstash-forwarder-forwarding-multiple-files-ends-up-jammed-together-in-one-single-entry/51646/3 "2017-07-06T04:54:46Z")

</div>


