# Invalid frame

**URL:** <https://discuss.elastic.co/t/invalid-frame/117071>\
**Category:** Logstash\
**Created:** [January 25, 2018, 3:49pm UTC](https://discuss.elastic.co/t/invalid-frame/117071 "2018-01-25T15:49:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbampa](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sbampa](https://discuss.elastic.co/u/sbampa)\
**Post date:** [January 25, 2018, 3:49pm UTC](https://discuss.elastic.co/t/invalid-frame/117071/1 "2018-01-25T15:49:00Z")

</div>

Hi all, i'm sending logs with filebeat to logstash, but i receive the following error:

[2018-01-25T16:46:48,630][INFO][org.logstash.beats.BeatsHandler] [local: 172.16.0.4:5043, remote: 172.16.0.64:48316] Exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: -12  
[2018-01-25T16:46:48,652][INFO][org.logstash.beats.BeatsHandler] [local: 172.16.0.4:5043, remote: 172.16.0.64:48316] Exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: -1

and no logs are sent.

Can you help me???

---

<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:** [January 29, 2018, 8:36am UTC](https://discuss.elastic.co/t/invalid-frame/117071/2 "2018-01-29T08:36:14Z")

</div>

Please show your Filebeat configuration as well as the beats input configuration in Logstash.

---

<div class="post-metadata">

**Author:** ![sbampa](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sbampa](https://discuss.elastic.co/u/sbampa)\
**Post date:** [January 29, 2018, 8:50am UTC](https://discuss.elastic.co/t/invalid-frame/117071/3 "2018-01-29T08:50:46Z")

</div>

Filebeat config:

filebeat.prospectors:

- type: log  
enabled: true  
paths:
  - /opt/jboss/server/default/log/server.log  
fields: {log\_type: worldmatch}  
multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'  
multiline.negate: true  
multiline.match: after  
filebeat.config.modules:  
path: ${path.config}/modules.d/\*.yml  
reload.enabled: false  
reload.period: 10s  
output.logstash:  
hosts: ["172.16.0.4:5043", "172.16.0.5:5043", "172.16.0.6:5043"]  
loadbalance: true  
compression\_level: 0  
username: "elastic"  
password: "changeme"  
logging.level: info  
logging.to\_files: true  
logging.to\_syslog: false  
logging.files:  
path: /var/log/mybeat  
name: mybeat.log  
keepfiles: 10  
rotateeveybytes: 1073741824

LS config:  
input {  
beats {  
port =\> "5043"  
client\_inactivity\_timeout=\>120  
}

---

<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:** [February 26, 2018, 8:50am UTC](https://discuss.elastic.co/t/invalid-frame/117071/4 "2018-02-26T08:50:53Z")

</div>

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