Skip to content

Commit

Permalink
[FEATURE] Add close_timeout to filebeat config (#91)
Browse files Browse the repository at this point in the history
* [FEATURE] Add close_timeout to filebeat config
  • Loading branch information
dipiazzg authored May 6, 2021
1 parent c87bb5a commit b93aba5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/templates/etc/filebeat/filebeat.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ filebeat.inputs:
# Note: After is the equivalent to previous and before is the equivalent to to next in Logstash
#multiline.match: after

{% if beats_config.filebeat.close_timeout is defined %}
# Close timeout closes the harvester after the predefined time.
# This is independent if the harvester did finish reading the file or not.
# By default this option is disabled.
# Note: Potential data loss. Make sure to read and understand the docs for this option.
close_timeout: {{ beats_config.filebeat.close_timeout }}
{% endif %}

#============================= Filebeat modules ===============================

Expand Down

0 comments on commit b93aba5

Please sign in to comment.