Fix examples

This commit is contained in:
Karl Southern 2016-05-03 17:11:28 +01:00
parent 0ff6f16ec7
commit e83af287f0
3 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,7 @@ For development:
For development tests are recommended to run inside a virtual machine (Vagrantfile is included in the repo), as it requires
access to various database engines and could completely destroy any data in a live system.
If you have vagrant available:
If you have vagrant available (this is temporary whilst I'm hacking on v5 support. I'll make this more streamlined later):
- `vagrant up`
- `vagrant ssh`
- `cd /vagrant`

View File

@ -9,7 +9,7 @@ input
}
output {
jdbc {
driver_class => "com.mysql.jdbc.Driver",
driver_class => "com.mysql.jdbc.Driver"
connection_string => "jdbc:mysql://HOSTNAME/DATABASE?user=USER&password=PASSWORD"
statement => [ "INSERT INTO log (host, timestamp, message) VALUES(?, CAST(? AS timestamp), ?)", "host", "@timestamp", "message" ]
}

View File

@ -10,6 +10,7 @@ output {
stdout { }
jdbc {
driver_class => "org.sqlite.JDBC"
connection_string => 'jdbc:sqlite:test.db'
statement => [ "INSERT INTO log (host, timestamp, message) VALUES(?, ?, ?)", "host", "@timestamp", "message" ]
}