From 38b709641949b10bf885e3483a1b34337f44d24b Mon Sep 17 00:00:00 2001 From: Dmitry Morozov Date: Fri, 4 Dec 2015 13:16:19 +0000 Subject: [PATCH 1/2] README.md updated --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2bc603b..295d548 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,17 @@ output { ``` ### MariaDB -This is reportedly working, according to [@db2882](https://github.com/db2882) in issue #20. -No example configuration provided. -If you have a working sample, pull requests are welcome. + * Tested with Ubuntu 14.04.3 LTS, Server version: 10.1.9-MariaDB-1~trusty-log mariadb.org binary distribution + * Tested using https://downloads.mariadb.com/enterprise/tqge-whfa/connectors/java/connector-java-1.3.2/mariadb-java-client-1.3.2.jar (mariadb-java-client-1.3.2.jar) +``` +input +{ + stdin { } +} +output { + jdbc { + connection_string => "jdbc:mariadb://HOSTNAME/DATABASE?user=USER&password=PASSWORD" + statement => [ "INSERT INTO log (host, timestamp, message) VALUES(?, ?, ?)", "host", "@timestamp", "message" ] + } + +} From 1ece7f9abc6230d1bd4a3ba00f9070edf42d30f3 Mon Sep 17 00:00:00 2001 From: Dmitry Morozov Date: Fri, 4 Dec 2015 13:20:58 +0000 Subject: [PATCH 2/2] formatting fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 295d548..074f3e7 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ input output { jdbc { connection_string => "jdbc:mariadb://HOSTNAME/DATABASE?user=USER&password=PASSWORD" - statement => [ "INSERT INTO log (host, timestamp, message) VALUES(?, ?, ?)", "host", "@timestamp", "message" ] + statement => [ "INSERT INTO log (host, timestamp, message) VALUES(?, ?, ?)", "host", "@timestamp", "message" ] } }