TypeError: can't convert Hash into String

[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:ininitialize'", "org/jruby/RubyArray.java:1613:in each'", "(eval):6772:ininitialize'", "org/jruby/RubyProc.java:281:in call'", "(eval):1426:infilter_func'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:398:in filter_batch'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:379:inworker_loop'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:342:in `start_workers'"]}

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

running on centos 7
which config file you referring to?

The configuration of whichever pipeline is getting that error.

All the configuration are default

log shipping from logstash to logz.io
filbeat on logstash server collect the logs from all servers

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