Hello.
I'm using the filebeat 6.2.4, but I get this error when I run filebeat, how to solve?
2018-09-06T14:00:09.729+0800 DEBUG [harvester] log/log.go:85 End of file reached: /var/log/messages; Backoff now.
2018-09-06T14:00:10.729+0800 DEBUG [harvester] log/log.go:85 End of file reached: /var/log/messages; Backoff now.
2018-09-06T14:00:10.730+0800 DEBUG [transport] transport/client.go:201 handle error: write tcp 192.168.1.2:19616->192.168.1.3:5044: write: connection reset by peer
2018-09-06T14:00:10.730+0800 DEBUG [logstash] logstash/async.go:142 2 events out of 2 events sent to logstash host 192.168.1.3:5044. Continue sending
2018-09-06T14:00:10.730+0800 DEBUG [logstash] logstash/async.go:99 close connection
2018-09-06T14:00:10.730+0800 DEBUG [transport] transport/client.go:114 closing
2018-09-06T14:00:10.730+0800 ERROR logstash/async.go:235 Failed to publish events caused by: write tcp 192.168.1.2:19616->192.168.1.3:5044: write: connection reset by peer
2018-09-06T14:00:10.731+0800 DEBUG [logstash] logstash/async.go:99 close connection
2018-09-06T14:00:11.731+0800 ERROR pipeline/output.go:92 Failed to publish events: write tcp 192.168.1.2:19616->192.168.1.3:5044: write: connection reset by peer
2018-09-06T14:00:11.731+0800 DEBUG [logstash] logstash/async.go:94 connect
2018-09-06T14:00:11.732+0800 DEBUG [logstash] logstash/async.go:142 2 events out of 2 events sent to logstash host 192.168.1.3:5044. Continue sending
2018-09-06T14:00:11.765+0800 DEBUG [registrar] registrar/registrar.go:228 Processing 2 events
2018-09-06T14:00:11.766+0800 DEBUG [registrar] registrar/registrar.go:200 Registrar state updates processed. Count: 2
2018-09-06T14:00:11.766+0800 DEBUG [registrar] registrar/registrar.go:259 Write registry file: /opt/filebeat/data/registry
2018-09-06T14:00:11.766+0800 DEBUG [registrar] registrar/registrar.go:284 Registry file updated. 1 states written.
2018-09-06T14:00:12.729+0800 DEBUG [harvester] log/log.go:85 End of file reached: /var/log/messages; Backoff now.
2018-09-06T14:00:16.729+0800 DEBUG [harvester] log/log.go:85 End of file reached: /var/log/messages; Backoff now.
2018-09-06T14:00:19.684+0800 DEBUG [prospector] prospector/prospector.go:124 Run prospector
2018-09-06T14:00:19.684+0800 DEBUG [prospector] log/prospector.go:147 Start next scan
2018-09-06T14:00:19.685+0800 DEBUG [prospector] log/prospector.go:362 Check file for harvesting: /var/log/messages
2018-09-06T14:00:19.685+0800 DEBUG [prospector] log/prospector.go:448 Update existing file for harvesting: /var/log/messages, offset: 134093
2018-09-06T14:00:19.685+0800 DEBUG [prospector] log/prospector.go:500 Harvester for file is still running: /var/log/messages
2018-09-06T14:00:19.685+0800 DEBUG [prospector] log/prospector.go:168 Prospector states cleaned up. Before: 1, After: 1, Pending: 0
2018-09-06T14:00:24.730+0800 DEBUG [harvester] log/log.go:85 End of file reached: /var/log/messages; Backoff now.
2018-09-06T14:00:29.685+0800 DEBUG [prospector] prospector/prospector.go:124 Run prospector
2018-09-06T14:00:29.685+0800 DEBUG [prospector] log/prospector.go:147 Start next scan
2018-09-06T14:00:29.685+0800 DEBUG [prospector] log/prospector.go:362 Check file for harvesting: /var/log/messages
2018-09-06T14:00:29.685+0800 DEBUG [prospector] log/prospector.go:448 Update existing file for harvesting: /var/log/messages, offset: 134093
2018-09-06T14:00:29.685+0800 DEBUG [prospector] log/prospector.go:500 Harvester for file is still running: /var/log/messages
2018-09-06T14:00:29.685+0800 DEBUG [prospector] log/prospector.go:168 Prospector states cleaned up. Before: 1, After: 1, Pending: 0
2018-09-06T14:00:34.730+0800 DEBUG [harvester] log/log.go:85 End of file reached: /var/log/messages; Backoff now.
This is the filebeat profile:
filebeat.prospectors:
- type: log
enabled: true
paths:
- /var/log/messages
output.logstash:
hosts: ["192.168.1.3:5044"]
logging.level: debug
logging.selectors: ["*"]
this is my 'ls logstash:
input {
beats {
port => 5044
}
}
output {
file {
path => "message-%{+YYYY.MM.dd}/%{host}.log"
}
}