# ":error\_message=\>"undefined method \`sanitized'"

**URL:** <https://discuss.elastic.co/t/error-message-undefined-method-sanitized/104088>\
**Category:** Logstash\
**Created:** [October 16, 2017, 12:11pm UTC](https://discuss.elastic.co/t/error-message-undefined-method-sanitized/104088 "2017-10-16T12:11:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![hyderNBK117](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@hyderNBK117](https://discuss.elastic.co/u/hyderNBK117)\
**Post date:** [October 19, 2017, 9:46am UTC](https://discuss.elastic.co/t/error-message-undefined-method-sanitized/104088/4 "2017-10-19T09:46:20Z")

</div>

Hi,

Logstash version 5.6.2 and the config is below:

```
input {
  jdbc {
    jdbc_driver_library => "C:\Program Files\Java\sqljdbc_6.2\enu\mssql-jdbc-6.2.1.jre8.jar"
    jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
    jdbc_connection_string => "jdbc:sqlserver://xxxxxxxx;databaseName=xxxxxxxx"
	jdbc_validate_connection => true
    jdbc_user => "xxxxxx"
    jdbc_password => "xxxxxx"
    statement => "SELECT * FROM [Database].[dbo].[Table] with (NOLOCK) where [RecordedTime] > '2017-10-13'"
	type => "CustomType"
	jdbc_fetch_size => 15
  }
}
output {
  elasticsearch 
  {
    hosts => ["10.34.29.37:9200","10.34.29.12:9200","10.34.29.50:9200"] 
    index => "test-%{+YYYY.MM.dd}" 
    document_type => "CustomType" 
	document_id => "%{id}"
	http_compression => true
	user => xxxxxxx
    password => xxxxxxx
  }
  stdout { codec => rubydebug }
}

```

I think it is Elastic Search rejecting the bulk request due to its size but Logstash is retrying the request hence then getting stuck in an endless loop. I came to this conclusion as I upgraded to 5.6.3 and got a different error, more info is [here](https://discuss.elastic.co/t/logstash-5-6-1-inifinite-loop-encountered-a-retryable-error/101753/18?u=hydernbk117)

---

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