# How to change the symbol separating decimals?

**URL:** https://discuss.elastic.co/t/how-to-change-the-symbol-separating-decimals/268090
**Category:** Logstash
**Created:** [March 23, 2021, 12:18pm UTC](https://discuss.elastic.co/t/how-to-change-the-symbol-separating-decimals/268090 "2021-03-23T12:18:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Betaminos](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@Betaminos](https://discuss.elastic.co/u/Betaminos)
#### Post date: [March 23, 2021, 12:18pm UTC](https://discuss.elastic.co/t/how-to-change-the-symbol-separating-decimals/268090/1 "2021-03-23T12:18:15Z")

</div>

Hey there,

I am currently using Logstash to consume data and insert it into Elasticsearch.  
Unfortunately for me, I am living in a country that uses . (dots) to group numbers into thousands and uses , (comma) to separate decimal digits.  
Consequently, any number that I work with looks something like this: 1.234,56  
Instead of the expected: 1,234.56  
I would also be able to provide my numbers as 1234,56 - but the issue of the symbol separating the decimals remains.

Is there any efficient way to tell Logstash that it should convert between these representations?  
The only thing that I have come across is to read the numbers as a string and then do a string-replace to switch the symbols.  
However, this solution seems unnecessarily slow and tedious.

Thank you for your help.

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [March 23, 2021, 4:11pm UTC](https://discuss.elastic.co/t/how-to-change-the-symbol-separating-decimals/268090/2 "2021-03-23T16:11:00Z")

</div>

Use [mutate+convert](https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html#plugins-filters-mutate-convert) with float\_eu type.

---

<div class="post-metadata">

### Author: ![Betaminos](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@Betaminos](https://discuss.elastic.co/u/Betaminos)
#### Post date: [April 7, 2021, 10:01am UTC](https://discuss.elastic.co/t/how-to-change-the-symbol-separating-decimals/268090/3 "2021-04-07T10:01:43Z")

</div>

Thank you for the info.  
I seem to have consistently looked at the wrong sections of the documentation as I had so far missed this.  
In case anyone stumbles across this question, the usage looks like this, where Field is the data field:  
`mutate { convert => {"Field" => "float_eu" }}`

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 5, 2021, 10:01am UTC](https://discuss.elastic.co/t/how-to-change-the-symbol-separating-decimals/268090/4 "2021-05-05T10:01:53Z")

</div>

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