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

543 B

Example: ODPS

With thanks to @onesuper

input
{
    stdin { }
}
output {
    jdbc {
        driver_class => "com.aliyun.odps.jdbc.OdpsDriver"
        driver_auto_commit => false
        connection_string => "jdbc:odps:http://service.odps.aliyun.com/api?project=meta_dev&loglevel=DEBUG"
        username => "abcd"
        password => "1234"
        max_pool_size => 5
        flush_size => 10
        statement => [ "INSERT INTO test_logstash VALUES(?, ?, ?);", "host", "@timestamp", "message" ]
    }
}