Skip to content
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 state for ignore_older files #2859

Merged
merged 1 commit into from Nov 1, 2016
Merged

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Oct 26, 2016

Previously if a file was falling under ignore_older on startup and no previous state was found, also no state was persisted. This was important in 1.x releases to prevent the registry file to contain too many files as no cleanup was possible. With the new clean_* options the registry file can now be cleaned up. For consistency all files that fall under ignore_older should have a state, even if they are not crawled before.

This change is also required to move tail_files under the prospector (#2613). Otherwise files which fall under ignore_older the state could not be set to the end of the file.

@ruflin ruflin added in progress Pull request is currently in progress. review Filebeat Filebeat labels Oct 26, 2016
@ruflin
Copy link
Member Author

ruflin commented Oct 31, 2016

jenkins, retest it

@ruflin ruflin force-pushed the ignore-older-state branch 2 times, most recently from 04c492f to 2b5e87f Compare November 1, 2016 07:39
@ruflin ruflin removed the in progress Pull request is currently in progress. label Nov 1, 2016
Previously if a file was falling under ignore_older on startup and no previous state was found, also no state was persisted. This was important in 1.x releases to prevent the registry file to contain too many files as no cleanup was possible. With the new clean_* options the registry file can now be cleaned up. For consistency all files that fall under ignore_older should have a state, even if they are not crawled before.

This change is also required to move tail_files under the prospector (elastic#2613). Otherwise files which fall under `ignore_older` the state could not be set to the end of the file.
@tsg
Copy link
Contributor

tsg commented Nov 1, 2016

LGTM.

@tsg tsg merged commit 8157332 into elastic:master Nov 1, 2016
@ruflin ruflin deleted the ignore-older-state branch November 1, 2016 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants