Skip to content

Commit

Permalink
Added configuration for SSL (among other things).
Browse files Browse the repository at this point in the history
  • Loading branch information
cjsaylor committed Jun 26, 2013
1 parent fddca0c commit ebb2450
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,13 @@ A [Logstash TCP][0] transport for [winston][1].
## Run Tests

```
npm test
NODE_TLS_REJECT_UNAUTHORIZED=0 npm test
```

## TODO

0. Write better documentation
1. SSL Support
2. Support for different formats
3. ???
1. Support for different formats
2. ???

#### Author: [Jaakko Suutarla](https://github.com/jaakkos)

Expand All @@ -60,4 +58,4 @@ See LICENSE for the full license text.

[0]: http://logstash.net/
[1]: https://github.com/flatiron/winston
[2]: https://github.com/indexzero/winston-loggly
[2]: https://github.com/indexzero/winston-loggly
9 changes: 9 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Configuration

* `host` - The host location of the logstash server. (`127.0.0.1`)
* `port` - The host port to connect. (`28777`)
* `max_connect_retries` - Max number of attempts to reconnect to logstash before going into silence. `-1` means retry forever. (`4`)
* `ssl_enable` - Enable SSL transfer of logs to logstash. (`false`)
* `ssl_key` - Path location of client private key. Only needed if SSL verify is required on logstash. (No default)
* `ssl_cert` - Path location of client public certificate. Only needed if SSL verify is required on logstash. (No default)
* `ssl_passphrase` - Passphrase for the SSL key. Only needed if the certificate has a passphrase. (No default)

0 comments on commit ebb2450

Please sign in to comment.