# Logstash日志里频繁出现报错""undefined method \`sanitized' "

**URL:** <https://discuss.elastic.co/t/logstash-undefined-method-sanitized/160079>\
**Category:** 中文提问与讨论\
**Created:** [December 10, 2018, 2:10am UTC](https://discuss.elastic.co/t/logstash-undefined-method-sanitized/160079 "2018-12-10T02:10:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![medcl.net](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/medcl.net/32/4414_2.png) [@medcl.net](https://discuss.elastic.co/u/medcl.net)\
**Post date:** [December 20, 2018, 1:34am UTC](https://discuss.elastic.co/t/logstash-undefined-method-sanitized/160079/2 "2018-12-20T01:34:28Z")

</div>

> [@haoyun](#):
>
> undefined method `sanitized'

应该和这个问题是一样的：

> [@Undefined method \`sanitized'](https://discuss.elastic.co/t/undefined-method-sanitized/100588/8):
>
> I could not find the solution but have a workaround for this. I have fresh installation of logstash 5.6.3 and using logstash-output-elasticsearch plugin version 9.0.0(upgraded from 7.4.2) Error: [2017-10-11T06:52:46,492][ERROR][logstash.outputs.elasticsearch] Encountered an unexpected error submitting a bulk request! Will retry. {:error\_message=\>"undefined method sanitized' for \"/\_bulk\":String", :cl ass=\>"NoMethodError", :backtrace=\>["/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash…

你看看是不是配置的用户名权限不够。

---

_[View the full topic](https://discuss.elastic.co/t/logstash-undefined-method-sanitized/160079)._
