# Logstash. Mutate's split doesn't split string

**URL:** https://discuss.elastic.co/t/logstash-mutates-split-doesnt-split-string/280035
**Category:** Logstash
**Created:** [July 30, 2021, 6:14am UTC](https://discuss.elastic.co/t/logstash-mutates-split-doesnt-split-string/280035 "2021-07-30T06:14:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ThreatInter](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@ThreatInter](https://discuss.elastic.co/u/ThreatInter)
#### Post date: [July 30, 2021, 6:14am UTC](https://discuss.elastic.co/t/logstash-mutates-split-doesnt-split-string/280035/1 "2021-07-30T06:14:04Z")

</div>

Hi, community. I have field "temp" with this value: "2.4.3-371989". I want split it by dots. With this purpose I use mutate filter this way:

```auto
mutate {
  split => ["temp", "."]
}

```

But after split "temp" field still equals "2.4.3-371989".

---

<div class="post-metadata">

### Author: ![Cad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cad/32/86661_2.png) [@Cad](https://discuss.elastic.co/u/Cad)
#### Post date: [July 30, 2021, 9:28am UTC](https://discuss.elastic.co/t/logstash-mutates-split-doesnt-split-string/280035/2 "2021-07-30T09:28:14Z")

</div>

Hi,

Split option take a Hash not an Array.  
Need to be like this :

```auto
mutate {
  split => { "temp" => "." }
}

```

Cad.

---

<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: [August 27, 2021, 9:29am UTC](https://discuss.elastic.co/t/logstash-mutates-split-doesnt-split-string/280035/3 "2021-08-27T09:29:10Z")

</div>

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