I controlled my config file tens of times but I got that error anyway

Here is my config file:

Here is the error:

Line 25, missing quote and comma
mutate { convert => [ "Unit_cost", "float"] } }
It's less code if you follow the documentation:

      mutate {
        convert => {
          "Units_sold" => "integer"
          "Unit_price" => "float"
          "Unit_cost" => "float"
          "Total_revenue" => "float"
          "Total_cost" => "float"
          "Total_profit" => "float"
        }
      }

Also you can convert fields directly in the csv plugin

Thanks so so much fella, I couldn't see it for gods sake...

1 Like