Filebeat keeps files open forever

Following ( your file upload only allows images) :

2016-10-17T18:08:15Z ERR Failed to publish events caused by: EOF
2016-10-17T18:08:15Z INFO Error publishing events (retrying): EOF
2016-10-17T18:08:21Z ERR Failed to publish events caused by: EOF
2016-10-17T18:08:21Z INFO Error publishing events (retrying): EOF
2016-10-17T18:08:28Z ERR Failed to publish events caused by: EOF
2016-10-17T18:08:28Z INFO Error publishing events (retrying): EOF
2016-10-17T18:08:37Z ERR Failed to publish events caused by: EOF
2016-10-17T18:08:37Z INFO Error publishing events (retrying): EOF
2016-10-17T18:08:37Z INFO Non-zero metrics in the last 30s: libbeat.publisher.published_events=2044 filebeat.harvester.started=1 libbeat.logstash.call_count.PublishEvents=4 libbeat.logstash.publish.read_errors=4 libbeat.logstash.publish.write_bytes=85412 libbeat.logstash.published_but_not_acked_events=5032 registrar.writes=1 filebeat.harvester.open_files=1 libbeat.logstash.publish.read_bytes=294 libbeat.logstash.published_and_acked_events=786 filebeat.harvester.running=1
2016-10-17T18:08:50Z ERR Failed to publish events caused by: EOF
2016-10-17T18:08:50Z INFO Error publishing events (retrying): EOF
2016-10-17T18:09:07Z INFO Non-zero metrics in the last 30s: libbeat.logstash.call_count.PublishEvents=2 libbeat.logstash.published_but_not_acked_events=1258 libbeat.logstash.publish.read_errors=1 libbeat.logstash.publish.write_bytes=3656
2016-10-17T18:09:36Z ERR Failed to publish events caused by: read tcp 127.0.0.1:40950->127.0.0.1:5044: i/o timeout
2016-10-17T18:09:36Z INFO Error publishing events (retrying): read tcp 127.0.0.1:40950->127.0.0.1:5044: i/o timeout
2016-10-17T18:09:37Z INFO Non-zero metrics in the last 30s: libbeat.logstash.published_but_not_acked_events=1258 libbeat.logstash.publish.read_errors=1
2016-10-17T18:10:07Z INFO No non-zero metrics in the last 30s
2016-10-17T18:10:13Z ERR Failed to publish events caused by: EOF
2016-10-17T18:10:13Z INFO Error publishing events (retrying): EOF
2016-10-17T18:10:37Z INFO Non-zero metrics in the last 30s: libbeat.logstash.call_count.PublishEvents=1 libbeat.logstash.publish.read_errors=1 libbeat.logstash.publish.write_bytes=1128 libbeat.logstash.published_but_not_acked_events=1258
2016-10-17T18:10:57Z WARN DEPRECATED: force_close_files was set to true. Use close_removed + close_rename
2016-10-17T18:10:57Z WARN DEPRECATED: close_older is deprecated. Use close_inactive
2016-10-17T18:11:07Z INFO Non-zero metrics in the last 30s: filebeat.harvester.open_files=1
2016-10-17T18:11:18Z ERR Failed to publish events caused by: EOF
2016-10-17T18:11:18Z INFO Error publishing events (retrying): EOF
2016-10-17T18:11:37Z INFO Non-zero metrics in the last 30s: libbeat.logstash.publish.write_bytes=1024 libbeat.logstash.publish.read_errors=1 libbeat.logstash.published_but_not_acked_events=1258 libbeat.logstash.call_count.PublishEvents=1
2016-10-17T18:12:07Z INFO No non-zero metrics in the last 30s
2016-10-17T18:12:23Z ERR Failed to publish events caused by: EOF
2016-10-17T18:12:23Z INFO Error publishing events (retrying): EOF
2016-10-17T18:12:37Z INFO Non-zero metrics in the last 30s: libbeat.logstash.published_but_not_acked_events=1258 libbeat.logstash.publish.write_bytes=285 libbeat.logstash.publish.read_errors=1 libbeat.logstash.call_count.PublishEvents=1
2016-10-17T18:13:07Z INFO No non-zero metrics in the last 30s
2016-10-17T18:13:28Z ERR Failed to publish events caused by: EOF
2016-10-17T18:13:28Z INFO Error publishing events (retrying): EOF
2016-10-17T18:13:37Z INFO Non-zero metrics in the last 30s: libbeat.logstash.publish.write_bytes=286 libbeat.logstash.published_but_not_acked_events=1258 libbeat.logstash.call_count.PublishEvents=1 libbeat.logstash.publish.read_errors=1
2016-10-17T18:14:07Z INFO No non-zero metrics in the last 30s
2016-10-17T18:14:33Z ERR Failed to publish events caused by: EOF
2016-10-17T18:14:33Z INFO Error publishing events (retrying): EOF
2016-10-17T18:14:37Z INFO Non-zero metrics in the last 30s: libbeat.logstash.publish.write_bytes=286 libbeat.logstash.published_but_not_acked_events=1258 libbeat.logstash.call_count.PublishEvents=1 libbeat.logstash.publish.read_errors=1
2016-10-17T18:15:07Z INFO No non-zero metrics in the last 30s
2016-10-17T18:15:37Z INFO Non-zero metrics in the last 30s: libbeat.logstash.call_count.PublishEvents=1 libbeat.logstash.publish.write_bytes=286
2016-10-17T18:15:38Z ERR Failed to publish events caused by: EOF
2016-10-17T18:15:38Z INFO Error publishing events (retrying): EOF
2016-10-17T18:16:07Z INFO Non-zero metrics in the last 30s: libbeat.logstash.published_but_not_acked_events=1258 libbeat.logstash.publish.read_errors=1