Hi Everyone,
already looked here and Fielbeat documentation, but something isn't working
there is only 1 log file that i want to collect and this one get overwritten every 3 minutes.
i already added close_eof: true but that didn't help, any other clue?
EDIT:
adding logs and config
filebeat log
2018-07-18T08:00:06.176+0200 INFO log/harvester.go:228 Harvester started for file: D:\BCP\carrental_table_counts.csv
2018-07-18T08:00:06.182+0200 INFO log/harvester.go:251 End of file reached: D:\BCP\table_counts.csv. Closing because close_eof is enabled.
2018-07-18T08:00:06.223+0200 INFO [monitoring] log/log.go:124 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":1875},"total":{"ticks":2734,"value":2734},"user":{"ticks":859}},"info":{"ephemeral_id":"26574d15-86f5-42bd-8aa2-84a22109808b","uptime":{"ms":52890202}},"memstats":{"gc_next":4319648,"memory_alloc":2269240,"memory_total":182437792,"rss":1581056}},"filebeat":{"events":{"active":719,"added":720,"done":1},"harvester":{"closed":1,"open_files":0,"running":0,"started":1},"input":{"log":{"files":{"truncated":1}}}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":1,"events":{"active":718,"filtered":2,"published":718,"total":720}}},"registrar":{"states":{"current":1,"update":1},"writes":{"success":1,"total":1}}}}}
2018-07-18T08:00:07.182+0200 ERROR logstash/async.go:235 Failed to publish events caused by: write tcp y.y.y.y:61031->x.x.x.x:5044: wsasend: An existing connection was forcibly closed by the remote host.
2018-07-18T08:00:08.183+0200 ERROR pipeline/output.go:92 Failed to publish events: write tcp y.y.y.y:61031->x.x.x.x:5044: wsasend: An existing connection was forcibly closed by the remote host.
at this snipped the time was 08:00, then it follows 08:03 and then 08:27, so he skipped quite a lot of 3minute intervals.
config:
filebeat.inputs:
- type: log
paths:
- D:\BCP\table_counts.csv
close_eof: true
close_inactive: 1m
fields:
logstash: carrental
fields_under_root: true
logging:
to_files: true
files:
path: C:\Program Files\filebeat\Logs
level: info
#================================ Outputs =====================================
#----------------------------- Logstash output --------------------------------
output.logstash:
# The Logstash hosts
hosts: ["x.x.x.x:5044"]
thanks in advance
Cheers,
Dirk