# Encountered a retryable error (will retry with exponential backoff) {:code=\>400, :url=\>"http://localhost:9200/\_bulk", :content\_length=\>187}

**URL:** <https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-400-url-http-localhost-9200-bulk-content-length-187/306547>\
**Category:** Logstash\
**Created:** [June 7, 2022, 9:24am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-400-url-http-localhost-9200-bulk-content-length-187/306547 "2022-06-07T09:24:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshay\_bhardwaj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshay_bhardwaj/32/106428_2.png) [@akshay\_bhardwaj](https://discuss.elastic.co/u/akshay_bhardwaj)\
**Post date:** [June 7, 2022, 9:24am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-400-url-http-localhost-9200-bulk-content-length-187/306547/1 "2022-06-07T09:24:03Z")

</div>

Hi i want to config logstash with incremental pipeline but i am getting below error t[2022-06-07T14:47:45,313][ERROR][logstash.outputs.Elasticsearch][main][d24e130edb19f1038da36ee73576edcc3bb8a8df6f0207c132792ec2475e92ec] Encountered a retryable error (will retry with exponential backoff) {:code=\>400, :url=\>"[http://localhost:9200/\_bulk](http://localhost:9200/_bulk)", :content\_length=\>187}

Config file:-

/////  
\<input {  
jdbc {  
jdbc\_connection\_string =\> "jdbc:mysql://localhost:3306/jobschema"  
# The user we wish to execute our statement as  
jdbc\_user =\> "root"  
jdbc\_password =\> "root"  
# The path to our downloaded jdbc driver  
jdbc\_driver\_library =\> "/usr/share/java/mysql-connector-java-8.0.29.jar"  
jdbc\_driver\_class =\> "com.mysql.jdbc.Driver"  
# our query  
statement =\> "SELECT \* FROM logplugin "  
use\_column\_value =\> true  
tracking\_column =\> "jobid"  
tracking\_column\_type =\> "numeric"  
schedule =\> "\*/5 \* \* \* \* \*"  
}  
}  
filter {  
Elasticsearch {  
user =\> logstash\_user  
password =\> test1234  
}  
if [action\_type] == "create" or [action\_type] == "insert" or [action\_type] == "update" {  
mutate { add\_field =\> { "[@metadata][action]" =\> "index" } }  
} else if [action\_type] == "delete" {  
mutate { add\_field =\> { "[@metadata][action]" =\> "delete" } }  
}  
mutate {  
remove\_field =\> ["@version", "@timestamp", "action\_type"]  
}  
}

output {

Elasticsearch {  
"hosts" =\> "localhost:9200"  
"index" =\> "check\_local"  
"action" =\> "%{[@metadata][action]}"  
"document\_id"=\> "%{jobid}"  
}  
stdout { codec =\> rubydebug { metadata =\> true } }  
}  
///////

---

<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:** [July 5, 2022, 9:24am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-400-url-http-localhost-9200-bulk-content-length-187/306547/2 "2022-07-05T09:24:30Z")

</div>

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