Translate filter dictionary error in execution


(Juanccert) #1

I'm having problems to run logstash 6.2.2 with the translate filter:

This is my translate filter code
<>

translate {
field => "month"
dictionary => {"01"=>"Jan", "02"=>"Feb"}
destination => "monthletter"
}

</>

I can run logstash when setting only field in the dictionary pram.
That is :
<>
translate {
field => "month"
dictionary => {"01"=>"Jan"}
destination => "monthletter"
}
</>

But when I try to add more fields to the dictionary
the execution stops due to an ERROR.

¿Any help?


(Magnus Bäck) #2

What error?!

dictionary => {"01"=>"Jan", "02"=>"Feb"}

I think you need to remove the comma.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.