logstash-plugins / logstash-filter-translate

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

Exception occurs if dictionary file has CRLF #81

Open tak7iji opened 5 years ago

tak7iji commented 5 years ago
  1. strip \r\n https://github.com/logstash-plugins/logstash-filter-translate/blob/master/lib/logstash/filters/dictionary/csv_file.rb#L19 @io.string = line ⇒ @io.string = line.strip
dpresbit commented 4 years ago

In a related note, in case anyone comes across this:

Spent quite a bit of time today scratching my head with a translate filter / dictionary_path issue. Resolution was to ensure that my keys had a colon with a space immediately after it, before the value was entered. Contents of YAML File - Dictionary_Path “1.1.1.1”: Net1 “2.1.1.1”: Net2