logstash-filter-translate icon indicating copy to clipboard operation
logstash-filter-translate copied to clipboard

want to use Field value in dictionary_path

Open vaghelabhavesh32 opened this issue 2 years ago • 1 comments

it will be usefull and good if we can use filed value in dictionary_path.

for example

translate { source => "[source][ip]" target => "[host][ip]" fallback => "no" dictionary_path => "/var/lib/logstash/static/%{[observer][ip]}.csv" refresh_interval => 43200 }

I have lots of csv files with IP which is available in filed value now i have different different key value in every csv file.

vaghelabhavesh32 avatar Jun 18 '22 09:06 vaghelabhavesh32

Given how the filter works by loading the contents of each file into memory at start time and during each refresh (if configured) this seems unlikely to be possible with the current paradigm. We have a similar issue that was solved by using if statements to determine which translate filter configuration is used.

MikeKemmerer avatar Jun 30 '23 08:06 MikeKemmerer