logstash-output-jdbc/examples/sqlite.md
2016-05-03 17:11:28 +01:00

451 B

Example: SQLite3

input
{
	stdin { }
}
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" ]
	}
}