Bonjour,
j'utilise un docker elk qui reçoit les logs d'un serveur postgresql via filbeat. Logstash crache cette erreur à chaque fois que filebeat lui envoi un evènement. Les 2 os sont redhat 7. Les FW sont désactivés, SE linux aussi.
- filebeat version 5.1.1
- Elasticsearch 5.1.1,
- Logstash 5.1.1
- Kibana 5.1.1.
Ci -dessous ma conf logstash pour les input et les output .
Quelqu'un aurait-il une idée du pourquoi de cette erreur ?
Merci
$ cat 02-beats-input.conf
input {
beats {
port => 5044
ssl => false
ssl_certificate => "/etc/pki/tls/certs/logstash-beats.crt"
ssl_key => "/etc/pki/tls/private/logstash-beats.key"
}
}
$ cat 30-output.conf
output {
elasticsearch {
hosts => ["localhost"]
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
La conf de filbeat (Là où sont les logs de la base)
filebeat.prospectors:
- input_type: log
encoding: utf-8
paths:
- /base/pocpg/data/pg_log/*.log
include_lines: ['^ERR', '^WARN', 'FATAL']
- input_type: log
paths:
- "/var/log/apache2/*"
fields:
apache: true
fields_under_root: true
Le fichier Registry de filebeat
$ cat /var/lib/filebeat/registry
[{"source":"/base/pocpg/data/pg_log/postgresql-Fri.log","offset":1702453,"FileStateOS":`{"inode":1076082378,"device":64775},"timestamp":"2017-01-13T15:04:09.410183375+01:00","ttl":-1},{"source":"/base/pocpg/data/pg_log/postgresql-Mon.log","offset":3336008,"FileStateOS":{"inode":1076082381,"device":64775},"timestamp":"2017-01-13T14:35:34.479778435+01:00","ttl":-1},{"source":"/base/pocpg/data/pg_log/postgresql-Sat.log","offset":3334943,"FileStateOS":{"inode":1076082379,"device":64775},"timestamp":"2017-01-13T14:35:34.47977876+01:00","ttl":-1},{"source":"/base/pocpg/data/pg_log/postgresql-Sun.log","offset":3330375,"FileStateOS":{"inode":1076082380,"device":64775},"timestamp":"2017-01-13T14:35:34.479779316+01:00","ttl":-1},{"source":"/base/pocpg/data/pg_log/postgresql-Thu.log","offset":3354031,"FileStateOS":{"inode":1076082375,"device":64775},"timestamp":"2017-01-13T14:35:34.479779636+01:00","ttl":-1},{"source":"/base/pocpg/data/pg_log/postgresql-Tue.log","offset":3381376,"FileStateOS":{"inode":1076082382,"device":64775},"timestamp":"2017-01-13T14:35:34.479779898+01:00","ttl":-1},{"source":"/base/pocpg/data/pg_log/postgresql-Wed.log","offset":3370121,"FileStateOS":{"inode":1076082358,"device":64775},"timestamp":"2017-01-13T14:35:34.47978017+01:00","ttl":-1}]`
Logstash logs:
$ tail -f logstash.stdout
[2017-01-13T13:41:57,058][ERROR][org.logstash.beats.BeatsHandler] Exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 69
[2017-01-13T13:41:57,058][ERROR][org.logstash.beats.BeatsHandler] Exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 84
[2017-01-13T13:42:57,061][ERROR][org.logstash.beats.BeatsHandler] Exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 69
[2017-01-13T13:42:57,063][ERROR][org.logstash.beats.BeatsHandler] Exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 84
[2017-01-13T13:43:57,065][ERROR][org.logstash.beats.BeatsHandler] Exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 69
[2017-01-13T13:43:57,065][ERROR][org.logstash.beats.BeatsHandler] Exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 84
[2017-01-13T13:44:57,068][ERROR][org.logstash.beats.BeatsHandler] Exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 69
[2017-01-13T13:44:57,068][ERROR][org.logstash.beats.BeatsHandler] Exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 84
[2017-01-13T13:45:57,071][ERROR][org.logstash.beats.BeatsHandler] Exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 69
[2017-01-13T13:45:57,071][ERROR][org.logstash.beats.BeatsHandler] Exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 84