# Logstash not able to output to ES error occurred sending bulk request

**URL:** https://discuss.elastic.co/t/logstash-not-able-to-output-to-es-error-occurred-sending-bulk-request/157000
**Category:** Logstash
**Created:** [November 16, 2018, 7:54am UTC](https://discuss.elastic.co/t/logstash-not-able-to-output-to-es-error-occurred-sending-bulk-request/157000 "2018-11-16T07:54:28Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![balumurari1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balumurari1/32/39203_2.png) [@balumurari1](https://discuss.elastic.co/u/balumurari1)
#### Post date: [November 20, 2018, 6:02am UTC](https://discuss.elastic.co/t/logstash-not-able-to-output-to-es-error-occurred-sending-bulk-request/157000/5 "2018-11-20T06:02:01Z")

</div>

hope this helps you,  
Make sure you are giving correct database connection details and then follow below sample example

> [@Synchronize data to es and customize es index structure](https://discuss.elastic.co/t/synchronize-data-to-es-and-customize-es-index-structure/154098/2):
>
> use below input code to connect to databse and load data from both the tables, in case of "statement", write join query to retrieve data from both tables, input { jdbc { jdbc\_driver\_library =\> "D:/Softwares/logstash-6.4.2/lib/com.mysql.jdbc\_5.1.5.jar" jdbc\_driver\_class =\> "com.mysql.jdbc.Driver" jdbc\_connection\_string =\> "jdbc:mysql://localhost:3306/test" jdbc\_user =\> "root" jdbc\_password =\> "root" statement =\> "SELECT \* FROM sample" jdbc\_paging\_enabled =\> "true" jdbc\_page\_size =\> "50…

---

_[View the full topic](https://discuss.elastic.co/t/logstash-not-able-to-output-to-es-error-occurred-sending-bulk-request/157000)._
