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

want to use Field value in dictionary_path #95

Open
vaghelabhavesh32 opened this issue Jun 18, 2022 · 1 comment
Open

want to use Field value in dictionary_path #95

vaghelabhavesh32 opened this issue Jun 18, 2022 · 1 comment

Comments

@vaghelabhavesh32
Copy link

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
Copy link

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.

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

No branches or pull requests

2 participants