logstash-plugins / logstash-filter-translate

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

want to use Field value in dictionary_path #95

Open vaghelabhavesh32 opened 2 years ago

vaghelabhavesh32 commented 2 years ago

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.

MikeKemmerer commented 1 year ago

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.