Filebeat.exe high RAM usage

@tudor Done. For reference https://discuss.elastic.co/t/filebeat-memory-usage-linux/63772/1