I'm using filebeat 5.4.4 on windows to harvest from log file directly to elastic stack, the requirement is that the logs come in to elastic as soon as possible (near real-time).
for some reson the logs only show up in kibana about 5 seconds later, after the events come in the last one comes in with a additional delay of a second
my filebeat cofig:
filebeat.prospectors:
- input_type: log
paths:
- C:\var\log\*.log
exclude_lines: ["^}"]
fields:
Host: myhost
fields_under_root: true
filebeat.idle_timeout: 500ms
output.elasticsearch:
hosts: ["localhost:9200"]
index: "my-index-%{+yyyy.MM.dd}"
pipeline: my_pipeline
template.name: "my_template"
template.enabled: true