I want to extract mapping to external dictionaries. Below is example of one of my translate filter configurations.
translate
{
destination => "target_field"
field => "source_field"
dictionary_path => "mapping.yml"
exact => true
refresh_behaviour => "replace"
}
When I verify it with
\bin\logstash.bat --config.test_and_exit -f .\logstash-6.2.2\logstash-conf\2filters.conf
I get error message
[ERROR][logstash.filters.translate] Unknown setting 'refresh_behaviour' for translate
But this is how documentation shows it should be done - https://www.elastic.co/guide/en/logstash/6.2/plugins-filters-translate.html#plugins-filters-translate-refresh_behaviour
I am using logstash-6.2.2.
It's possible that your logstash-filter-translate plugin is an older version.
Try to run
bin/logstash-plugin list --verbose 'translate'
and check what version the plugin is, it should be at least 3.1.0.
If it is older, you can use
bin/logstash-plugin update logstash-filter-translate
to update the plugin to the latest version.
For offline plugin management, check the documentation here.