logstash-output-jdbc/examples/oracle.md
2015-12-30 12:05:05 +00:00

486 B

Example: Oracle

With thanks to @josemazo

input
{
	stdin { }
}
output {
	jdbc {
		connection_string => "jdbc:oracle:thin:USER/PASS@HOST:PORT:SID"
		statement => [ "INSERT INTO log (host, timestamp, message) VALUES(?, CAST (? AS timestamp), ?)", "host", "@timestamp", "message" ]
	}
}