Skip to content

Commit

Permalink
Merge pull request theangryangel#25 from ebuildy/patch-1
Browse files Browse the repository at this point in the history
Add Apache Phoenix example from @ebuildy
  • Loading branch information
theangryangel committed Dec 22, 2015
2 parents 0646476 + 9e05a01 commit af55fde
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,21 @@ output {
}
}
```

### 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 <!>
```
input
{
stdin { }
}
output {
jdbc {
connection_string => "jdbc:phoenix:ZOOKEEPER_HOSTNAME"
statement => [ "UPSERT INTO EVENTS log (host, timestamp, message) VALUES(?, ?, ?)", "host", "@timestamp", "message" ]
}
}
```

0 comments on commit af55fde

Please sign in to comment.