Skip to content
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

Commit 0646476

Browse files
committed
Merge pull request #24 from dmitryakadiamond/MariaDB-working-example
Maria db working example kindly provided by @dmitryakadiamond
2 parents eef7473 + 1ece7f9 commit 0646476

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,17 @@ output {
139139
```
140140

141141
### MariaDB
142-
This is reportedly working, according to [@db2882](https://github.com/db2882) in issue #20.
143-
No example configuration provided.
144-
If you have a working sample, pull requests are welcome.
142+
* Tested with Ubuntu 14.04.3 LTS, Server version: 10.1.9-MariaDB-1~trusty-log mariadb.org binary distribution
143+
* 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)
144+
```
145+
input
146+
{
147+
stdin { }
148+
}
149+
output {
150+
jdbc {
151+
connection_string => "jdbc:mariadb://HOSTNAME/DATABASE?user=USER&password=PASSWORD"
152+
statement => [ "INSERT INTO log (host, timestamp, message) VALUES(?, ?, ?)", "host", "@timestamp", "message" ]
153+
}
154+
155+
}

0 commit comments

Comments
 (0)