# Issue to connect AWS RDS mysql from Logstash

**URL:** <https://discuss.elastic.co/t/issue-to-connect-aws-rds-mysql-from-logstash/214233>\
**Category:** Logstash\
**Created:** [January 8, 2020, 12:23pm UTC](https://discuss.elastic.co/t/issue-to-connect-aws-rds-mysql-from-logstash/214233 "2020-01-08T12:23:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijoyem](https://avatars.discourse-cdn.com/v4/letter/v/a3d4f5/32.png) [@vijoyem](https://discuss.elastic.co/u/vijoyem)\
**Post date:** [January 8, 2020, 12:23pm UTC](https://discuss.elastic.co/t/issue-to-connect-aws-rds-mysql-from-logstash/214233/1 "2020-01-08T12:23:32Z")

</div>

Hello, I am setting up logstash conf file to fetch the logs from my AWS RDS MYSQL database. Please let me know what needs to be corrected. ELK is configured in the AWS ec2 single machine. All services are up and running. I used the debugging command sudo bin/logstash -f \<path\_to\_config\_file\>

this is the conf file settings and error below:  
input {  
jdbc {  
jdbc\_connection\_string =\> "jdbc:mysql://database-1.abcdef.ap-south-1.rds.amazonaws.com:3306/testdb"  
# The user we wish to execute our statement as  
jdbc\_user =\> "abcd"  
jdbc\_password =\> "abcd"  
# The path to our downloaded jdbc driver  
jdbc\_driver\_library =\> "\etc\logstash\mysql-connector-java-5.1.30.jar"  
jdbc\_driver\_class =\> "com.mysql.jdbc.Driver"  
# our query  
schedule =\> "\* \* \* \*"  
statement =\> "SELECT \* FROM users"  
}  
}  
output {  
stdout { codec =\> json\_lines }  
elasticsearch {  
"hosts" =\> "localhost:9200"  
"index" =\> "test"  
"document\_type" =\> "data"  
}  
}

LogStash::Error: Don't know how to handle `Java::JavaLang::IllegalStateException` for `PipelineAction::Create<main>`

---

<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:** [February 5, 2020, 12:23pm UTC](https://discuss.elastic.co/t/issue-to-connect-aws-rds-mysql-from-logstash/214233/2 "2020-02-05T12:23:36Z")

</div>

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