CSV filter plugin config file error

Hi, newbie logstasher here. I'm trying to run my first logstash instance and having a problem with the config file. When I add a "convert" property to my CSV filter config I get an error.

This is fine:
convert => { "When" => "date"}

This is not:
convert => { "When" => "date", "LocalTime" => "date"}

It gives the following error starting logstash:
"The given configuration is invalid. Reason: Expected on of #, {, } at line..."

In the CSV filter docs it says I can define multiple converts with this syntax, but my logstash will not allow it. Any ideas what I'm doing wrong?

Running on Windows 8.1 with Java version 1.8.0_66.



Can you show your entire config?

convert => { "When" => "date", "LocalTime" => "date"}

Remove the space between each key/value pair.

Dunno, this works for me;

  mutate {
    convert => {
      "average_lifespan" => "integer"
      "average_height" => "integer"
      "people" => "string"
1 Like

Thanks warkolm, your solution worked.