-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add close and clean harvesting #70
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
dca54f0
Paramatrize prospectors variables for filebeat 5
2858b47
remove an extra blank
3e11de6
Check some harvesting parameters are booleans and link dependencies b…
8cb4237
check boolean values
5ea868d
print a message on client side when filebeat is missconfigured
e3e3f4d
deleting notify since it has to be done by filebeat service these kin…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,33 +121,47 @@ filebeat: | |
# Close inactive closes the file handler after the predefined period. | ||
# The period starts when the last line of the file was, not the file ModTime. | ||
# Time strings like 2h (2 hours), 5m (5 minutes) can be used. | ||
#close_inactive: 5m | ||
<%- if @close_inactive -%> | ||
close_inactive: <%= @close_inactive %> | ||
<%- end -%> | ||
|
||
# Close renamed closes a file handler when the file is renamed or rotated. | ||
# Note: Potential data loss. Make sure to read and understand the docs for this option. | ||
#close_renamed: false | ||
<%- if @close_renamed -%> | ||
close_renamed: <%= @close_renamed %> | ||
<%- end -%> | ||
|
||
# When enabling this option, a file handler is closed immediately in case a file can't be found | ||
# any more. In case the file shows up again later, harvesting will continue at the last known position | ||
# after scan_frequency. | ||
#close_removed: true | ||
<%- if @close_removed -%> | ||
close_removed: <%= @close_removed %> | ||
<%- end -%> | ||
|
||
# Closes the file handler as soon as the harvesters reaches the end of the file. | ||
# By default this option is disabled. | ||
# Note: Potential data loss. Make sure to read and understand the docs for this option. | ||
#close_eof: false | ||
<%- if @close_close_eof -%> | ||
close_eof: <%= @close_eof %> | ||
<%- end -%> | ||
|
||
### State options | ||
|
||
# Files for the modification data is older then clean_inactive the state from the registry is removed | ||
# By default this is disabled. | ||
#clean_inactive: 0 | ||
<%- if @clean_inactive -%> | ||
clean_inactive: <%= @clean_inactive %> | ||
<%- end -%> | ||
|
||
# Removes the state for file which cannot be found on disk anymore immediately | ||
#clean_removed: true | ||
<%- if @clean_removed -%> | ||
clean_removed: <%= @clean_removed %> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The logic for setting this will work the same way that |
||
<%- end -%> | ||
|
||
# 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: 0 | ||
<%- if @close_timeout -%> | ||
close_timeout: <%= @close_timeout %> | ||
<%- end -%> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
close_removed
is false then this will be excluded, defaulting to true.