I would like to configure Filebeat so it would send the whole content of all files of a specific folder (the log files appear in this folder, one file per new event).
I have some problems configuring this use case because the last line of every file is not sent if there is no carriage return at the very last end of the file. As I can't add one, this is a blocker issue for me and it seems that it is simply not possible to configure Filebeat to send all the content anyway by looking at the FAQ...
I would like to know also if it is possible to add the creation time (and/or the modification time) of each file as a metadata or a field to the Logstash server?
Here is my current configuration of prospectors.d/http_queries.yml
:
- type: log
paths:
- /var/log/http_queries/*
multiline:
pattern: ^POST|^GET
negate: true
match: after
close_eof: true