logstash-plugins / logstash-filter-translate

Translate filter for Logstash
Apache License 2.0
21 stars 47 forks source link

Refresh dictionary only if it's changed on disk #45

Closed alcanzar closed 6 years ago

alcanzar commented 7 years ago

Add an option to refresh the dictionary file only if it changes. Look at the file modification time and if it changes, refresh the file. The refresh interval is used to determine how often to check the modification time, so change the interval down to 5 seconds by default

alcanzar commented 7 years ago

I've updated the PR so that if the refresh time is set lower than 5 minutes, it will execute the modification time logic.