logstash-output-jdbc/examples/apache-phoenix-hbase-sql.md

18 lines
525 B
Markdown
Raw Permalink Normal View History

# Example: Apache Phoenix (HBase SQL)
* Tested with Ubuntu 14.04.03 / Logstash 2.1 / Apache Phoenix 4.6
* <!> HBase and Zookeeper must be both accessible from logstash machine <!>
2016-12-17 13:07:48 +00:00
* Please see apache-phoenix-thin-hbase-sql for phoenix-thin. The examples are different.
```
input
{
stdin { }
}
output {
jdbc {
connection_string => "jdbc:phoenix:ZOOKEEPER_HOSTNAME"
statement => [ "UPSERT INTO EVENTS log (host, timestamp, message) VALUES(?, ?, ?)", "host", "@timestamp", "message" ]
}
}
```