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

**URL:** <https://discuss.elastic.co/t/i-controlled-my-config-file-tens-of-times-but-i-got-that-error-anyway/364668>\
**Category:** Logstash\
**Created:** [August 9, 2024, 11:25am UTC](https://discuss.elastic.co/t/i-controlled-my-config-file-tens-of-times-but-i-got-that-error-anyway/364668 "2024-08-09T11:25:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![UMUT\_CAN\_ARGUN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/umut_can_argun/32/136553_2.png) [@UMUT\_CAN\_ARGUN](https://discuss.elastic.co/u/UMUT_CAN_ARGUN)\
**Post date:** [August 9, 2024, 11:25am UTC](https://discuss.elastic.co/t/i-controlled-my-config-file-tens-of-times-but-i-got-that-error-anyway/364668/1 "2024-08-09T11:25:06Z")

</div>

Here is my config file:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/d/4dd01e037d65514b1f3dedc52ea6f759fb41f1eb.png)

Here is the error:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/4/c46ea5156fb991fa7c427e2c72b5695c09dc7040.png)

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [August 9, 2024, 11:36am UTC](https://discuss.elastic.co/t/i-controlled-my-config-file-tens-of-times-but-i-got-that-error-anyway/364668/2 "2024-08-09T11:36:40Z")

</div>

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

```auto
      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](https://www.elastic.co/guide/en/logstash/current/plugins-filters-csv.html#plugins-filters-csv-convert)

---

<div class="post-metadata">

**Author:** ![UMUT\_CAN\_ARGUN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/umut_can_argun/32/136553_2.png) [@UMUT\_CAN\_ARGUN](https://discuss.elastic.co/u/UMUT_CAN_ARGUN)\
**Post date:** [August 9, 2024, 11:45am UTC](https://discuss.elastic.co/t/i-controlled-my-config-file-tens-of-times-but-i-got-that-error-anyway/364668/3 "2024-08-09T11:45:59Z")

</div>

> [@UMUT\_CAN\_ARGUN](#):
>
> Here is the error:

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