logstash-plugins / logstash-filter-translate

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

Feature Request: add "append" override option #62

Open MikeKemmerer opened 6 years ago

MikeKemmerer commented 6 years ago

If the destination already exists, it would be nice if the value in the dictionary was appended as an element of an array to the destination. This would be extremely helpful if multiple items in the dictionary match the value of the field being used for the comparison.

guyboertje commented 6 years ago

This would be extremely helpful if multiple items in the dictionary match the value of the field being used for the comparison.

AFAIK the key in the loaded dictionary is unique. If the dictionary file has multiple key -> value entries with the same key then the last one read wins.

Other than trying to clear up your second sentence, I agree with the first one.

nikhilo commented 6 years ago

I wanted to categorize numerous 'type's of logs we have into fewer main categories. I tried to use destination field as 'tags', but the plugin (with override:true) doesn't append the value to 'tags', instead overwrites the tags field with translated value 🤔 I think I'm gonna have to use some other field for this task.