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

Docs: Questions about refresh interval #87

Open
lisaens opened this issue Jun 24, 2020 · 2 comments
Open

Docs: Questions about refresh interval #87

lisaens opened this issue Jun 24, 2020 · 2 comments

Comments

@lisaens
Copy link

lisaens commented Jun 24, 2020

The translate filter description says "If you set a refresh_interval of 300 seconds (5 minutes) or less then the modified time of the file is checked before reloading. " Under the description of the refresh_interval setting, it says the default is 300 seconds, but that's all. This is confusing and leaves some questions unanswered.

Will the dictionary file be reloaded if the interval is more than 5 minutes? Will an interval of 1 day or 1 week work? Is the file always reloaded after refresh_interval seconds or only if the modified-time of the file indicates that it has changed since the last refresh time? Does the timer reset if Logstash is restarted?

  • Plugin version: v3.2.3
@lisaens
Copy link
Author

lisaens commented Jun 24, 2020

Plus I'm getting "Unknown setting 'refresh_behavior'" with this version of the plugin.

@TheVastyDeep
Copy link

The option is refresh_behaviour, not refresh_behavior.

If the refresh_interval is 300 seconds or less, then the modification time is checked. This means you can frequently check the modification time without the overhead of rebuilding the dictionary. If the refresh_interval is greater than 300 (e.g. 1 day or even 1 week) then it does not bother checking the modification time, it just goes ahead and rebuilds the dictionary.

Yes, the timer is reset if logstash restarts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants