Fix examples
This commit is contained in:
parent
0ff6f16ec7
commit
e83af287f0
|
@ -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`
|
||||
|
|
|
@ -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" ]
|
||||
}
|
||||
|
|
|
@ -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" ]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user