Start of setup for Logstash's log4j2 integration

This commit is contained in:
Karl Southern
2016-09-02 19:01:28 +01:00
parent 3bdd8ef3a8
commit 238ef153e4
5 changed files with 50 additions and 31 deletions

18
examples/cockroachdb.md Normal file
View File

@@ -0,0 +1,18 @@
# Example: CockroachDB
- Tested using postgresql-9.4.1209.jre6.jar
- **Warning** cockroach is known to throw a warning on connection test (at time of writing), thus the connection test is explicitly disabled.
```
input
{
stdin { }
}
output {
jdbc {
driver_jar_path => '/opt/postgresql-9.4.1209.jre6.jar'
connection_test => false
connection_string => 'jdbc:postgresql://127.0.0.1:26257/test?user=root'
statement => [ "INSERT INTO log (host, timestamp, message) VALUES(?, CAST (? AS timestamp), ?)", "host", "@timestamp", "message" ]
}
}
```