Skip to content

Commit

Permalink
Add sample logstash config
Browse files Browse the repository at this point in the history
  • Loading branch information
jaakkos committed May 6, 2013
1 parent 0667d71 commit 7a1652e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
A [Logstash TCP][0] transport for [winston][1].

## Usage

### Node

``` js
var winston = require('winston');

Expand All @@ -21,6 +24,18 @@ A [Logstash TCP][0] transport for [winston][1].
});
```

### Logstash config

``` ruby
input {
# Sample input over TCP
tcp { format => "json" charset => "UTF-8" port => 28777 type=>"sample" }
}
output {
stdout { debug => true debug_format => "json"}
}
```

## Inspiration
[winston-loggly][2]

Expand Down
2 changes: 1 addition & 1 deletion test/support/logstash/logstash.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
input {
stdin { type => "stdin-type"}
tcp { format => "json" charset => "UTF-8" port => 28777 type=>"merchii-worker-v2" }
tcp { format => "json" charset => "UTF-8" port => 28777 type=>"sample" }
}
output {
stdout { debug => true debug_format => "json"}
Expand Down

0 comments on commit 7a1652e

Please sign in to comment.