# How to change number format in Logstash

**URL:** https://discuss.elastic.co/t/how-to-change-number-format-in-logstash/275587
**Category:** Logstash
**Created:** [June 10, 2021, 2:17pm UTC](https://discuss.elastic.co/t/how-to-change-number-format-in-logstash/275587 "2021-06-10T14:17:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rknd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rknd/32/103882_2.png) [@rknd](https://discuss.elastic.co/u/rknd)
#### Post date: [June 10, 2021, 2:17pm UTC](https://discuss.elastic.co/t/how-to-change-number-format-in-logstash/275587/1 "2021-06-10T14:17:17Z")

</div>

I have numbers like

```auto
1.553
23
2.383
26
566

```

When I parse this with logstash, I get string value of these.

When I try to use mutate filter plugin like below;

```auto
mutate {
     convert => {
            "number_field" => "integer"
      }
}

```

It returns wrong.

I mean as an example, **2.383 as input goes 2 as output**.

My expections is below

```auto
1553
23
2383
566

```

How can i solve this ?

Thanks for answering

---

<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: [June 10, 2021, 2:39pm UTC](https://discuss.elastic.co/t/how-to-change-number-format-in-logstash/275587/2 "2021-06-10T14:39:46Z")

</div>

> [@rknd](#):
>
> How can i solve this ?

Use integer\_eu instead of integer.

---

<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: [July 8, 2021, 2:40pm UTC](https://discuss.elastic.co/t/how-to-change-number-format-in-logstash/275587/3 "2021-07-08T14:40:33Z")

</div>

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