Hello!
So. It seems our case's similar to that (Filebeat EOF - And then succeeds at second try). We have errors in filebeat stating that:
2016-12-27T18:25:51+03:00 DBG Try to publish 2 events to logstash with window size 1
2016-12-27T18:25:51+03:00 DBG handle error: EOF
2016-12-27T18:25:51+03:00 DBG closing
2016-12-27T18:25:51+03:00 DBG 0 events out of 2 events sent to logstash. Continue sending
2016-12-27T18:25:51+03:00 DBG close connection
2016-12-27T18:25:51+03:00 ERR Failed to publish events caused by: EOF
2016-12-27T18:25:51+03:00 INFO Error publishing events (retrying): EOF
2016-12-27T18:25:51+03:00 DBG close connection
2016-12-27T18:25:51+03:00 DBG send fail
2016-12-27T18:25:52+03:00 DBG connect
2016-12-27T18:25:52+03:00 DBG Try to publish 2 events to logstash with window size 1
2016-12-27T18:25:52+03:00 DBG 1 events out of 2 events sent to logstash. Continue sending
2016-12-27T18:25:52+03:00 DBG Try to publish 1 events to logstash with window size 1
2016-12-27T18:25:52+03:00 DBG 1 events out of 1 events sent to logstash. Continue sending
2016-12-27T18:25:52+03:00 DBG send completed
2016-12-27T18:25:52+03:00 DBG Events sent: 2
2016-12-27T18:25:52+03:00 DBG Processing 2 events
2016-12-27T18:25:52+03:00 DBG Registrar states cleaned up. Before: 20, After: 20
2016-12-27T18:25:52+03:00 DBG Write registry file: /var/lib/filebeat/registry
In other words logs'are sent, but after failing once. And there's nothing in Logstash logs.
Filebeat config (actually there're many more prospectors, but the differences only in the path and quantity of the prospectors):
############################# Filebeat ######################################
filebeat:
prospectors:
-
paths:
- /var/log/problem*.log
input_type: log
document_type: problem_log
-
paths:
- /var/log/error-*.log
input_type: log
document_type: error_log
multiline:
pattern: '^[0-9]{6}_[0-9]{6}'
negate: true
match: after
exclude_lines: [ '^\n' ]
registry_file: /var/lib/filebeat/registry
############################# Output ##########################################
output:
logstash:
protocol: https
hosts: ["IP:5044"]
worker: 1
compression_level: 3
loadbalance: true
ssl:
certificate_authorities: ["/etc/filebeat/logstash.crt"]
############################# Logging #########################################
logging:
files:
# The directory where the log files will written to.
#path: /var/log/mybeat
# The name of the files where the logs are written to.
#name: mybeat
# Configure log file size limit. If limit is reached, log file will be
# automatically rotated
rotateeverybytes: 10485760 # = 10MB
# Number of rotated log files to keep. Oldest files will be deleted first.
#keepfiles: 7
# Sets log level. The default log level is error.
# Available log levels are: critical, error, warning, info, debug
#level: error
What could be the cause? Maybe we should add/edit some parameters? Could you give us some tips, please?