README.md in logstash-input-jdbc-0.1.3 vs README.md in logstash-input-jdbc-1.0.0
- old
+ new
@@ -1,9 +1,7 @@
# Logstash JDBC Input Plugin
-## WIP: Under Development, NOT FOR PRODUCTION
-
This is a plugin for [Logstash](https://github.com/elasticsearch/logstash).
It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
## Documentation
@@ -13,11 +11,11 @@
- For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
- For more asciidoc formatting tips, see the excellent reference here https://github.com/elasticsearch/docs#asciidoc-guide
## Need Help?
-Need help? Try #logstash on freenode IRC or the logstash-users@googlegroups.com mailing list.
+Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
## Developing
### 1. Plugin Developement and Testing
@@ -83,9 +81,40 @@
- Install the plugin from the Logstash home
```sh
bin/plugin install /your/local/plugin/logstash-input-jdbc.gem
```
- Start Logstash and proceed to test the plugin
+
+## Example configuration
+
+Reading data from MySQL:
+
+ input {
+ jdbc {
+ jdbc_driver_library => "/path/to/mysql-connector-java-5.1.33-bin.jar"
+ jdbc_driver_class => "com.mysql.jdbc.Driver"
+ jdbc_connection_string => "jdbc:mysql://host:port/database"
+ jdbc_user => "user"
+ jdbc_password => "password"
+ statement => "SELECT ..."
+ jdbc_paging_enabled => "true"
+ jdbc_page_size => "50000"
+ }
+ }
+
+ filter {
+ [some filters here]
+ }
+
+ output {
+ stdout {
+ codec => rubydebug
+ }
+ elasticsearch_http {
+ host => "host"
+ index => "myindex"
+ }
+ }
## Contributing
All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.