# TypeError: can't convert Hash into String

**URL:** https://discuss.elastic.co/t/typeerror-cant-convert-hash-into-string/194869
**Category:** Logstash
**Created:** [August 12, 2019, 2:57pm UTC](https://discuss.elastic.co/t/typeerror-cant-convert-hash-into-string/194869 "2019-08-12T14:57:48Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![YanivT](https://avatars.discourse-cdn.com/v4/letter/y/49beb7/32.png) [@YanivT](https://discuss.elastic.co/u/YanivT)
#### Post date: [August 12, 2019, 2:57pm UTC](https://discuss.elastic.co/t/typeerror-cant-convert-hash-into-string/194869/1 "2019-08-12T14:57:48Z")

</div>

[2019-08-12T10:57:09,072][FATAL][logstash.runner] An unexpected error occurred! {:error=\>#\<TypeError: can't convert Hash into String\>, :backtrace=\>["org/jruby/RubyString.java:4462:in `include?'", "(eval):6774:in`initialize'", "org/jruby/RubyArray.java:1613:in `each'", "(eval):6772:in`initialize'", "org/jruby/RubyProc.java:281:in `call'", "(eval):1426:in`filter\_func'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:398:in `filter_batch'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:379:in`worker\_loop'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:342:in `start\_workers'"]}

---

<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: [August 12, 2019, 3:02pm UTC](https://discuss.elastic.co/t/typeerror-cant-convert-hash-into-string/194869/2 "2019-08-12T15:02:40Z")

</div>

What does your configuration look like and what event is it processing?

---

<div class="post-metadata">

### Author: ![YanivT](https://avatars.discourse-cdn.com/v4/letter/y/49beb7/32.png) [@YanivT](https://discuss.elastic.co/u/YanivT)
#### Post date: [August 12, 2019, 3:08pm UTC](https://discuss.elastic.co/t/typeerror-cant-convert-hash-into-string/194869/3 "2019-08-12T15:08:13Z")

</div>

running on centos 7  
which config file you referring to?

---

<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: [August 12, 2019, 3:13pm UTC](https://discuss.elastic.co/t/typeerror-cant-convert-hash-into-string/194869/4 "2019-08-12T15:13:13Z")

</div>

The configuration of whichever pipeline is getting that error.

---

<div class="post-metadata">

### Author: ![YanivT](https://avatars.discourse-cdn.com/v4/letter/y/49beb7/32.png) [@YanivT](https://discuss.elastic.co/u/YanivT)
#### Post date: [August 12, 2019, 3:16pm UTC](https://discuss.elastic.co/t/typeerror-cant-convert-hash-into-string/194869/5 "2019-08-12T15:16:48Z")

</div>

All the configuration are default

log shipping from logstash to [logz.io](http://logz.io)  
filbeat on logstash server collect the logs from all servers

---

<div class="post-metadata">

### Author: ![YanivT](https://avatars.discourse-cdn.com/v4/letter/y/49beb7/32.png) [@YanivT](https://discuss.elastic.co/u/YanivT)
#### Post date: [August 12, 2019, 3:17pm UTC](https://discuss.elastic.co/t/typeerror-cant-convert-hash-into-string/194869/6 "2019-08-12T15:17:40Z")

</div>

let me know please which config file i can show you...

---

<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: [September 9, 2019, 3:17pm UTC](https://discuss.elastic.co/t/typeerror-cant-convert-hash-into-string/194869/7 "2019-09-09T15:17:43Z")

</div>

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