Skip to content
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

Commit af55fde

Browse files
committed
Merge pull request #25 from ebuildy/patch-1
Add Apache Phoenix example from @ebuildy
2 parents 0646476 + 9e05a01 commit af55fde

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,21 @@ output {
153153
}
154154
155155
}
156+
```
157+
158+
### Apache Phoenix (HBase SQL)
159+
* Tested with Ubuntu 14.04.03 / Logstash 2.1 / Apache Phoenix 4.6
160+
* <!> HBase and Zookeeper must be both accessible from logstash machine <!>
161+
```
162+
input
163+
{
164+
stdin { }
165+
}
166+
output {
167+
jdbc {
168+
connection_string => "jdbc:phoenix:ZOOKEEPER_HOSTNAME"
169+
statement => [ "UPSERT INTO EVENTS log (host, timestamp, message) VALUES(?, ?, ?)", "host", "@timestamp", "message" ]
170+
}
171+
172+
}
173+
```

0 commit comments

Comments
 (0)