# Can't parse field

**URL:** <https://discuss.elastic.co/t/cant-parse-field/26557>\
**Category:** Logstash\
**Created:** [July 30, 2015, 10:09am UTC](https://discuss.elastic.co/t/cant-parse-field/26557 "2015-07-30T10:09:02Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 11, 2015, 5:26pm UTC](https://discuss.elastic.co/t/cant-parse-field/26557/4 "2015-08-11T17:26:38Z")

</div>

Hmm. It seems Ruby's URI module doesn't decode plus signs to spaces. My RFC-fu isn't strong enough to explain why this is the correct behavior (if indeed it is). I suggest you use a mutate filter to replace plus signs with spaces and use urldecode for other encoded characters that potentially could occur in the string.

```
mutate {
  gsub => ["device-model", "\+", " "]
}
```

---

_[View the full topic](https://discuss.elastic.co/t/cant-parse-field/26557)._
