logstash-output-riemann 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c518d3098303bac1ee689a2fe9d322272c96b3f3
4
- data.tar.gz: c60899ddb3ea2407a79f0289545916da53756931
3
+ metadata.gz: 6154411956f838c893cd10992536b8d0fd433dd8
4
+ data.tar.gz: 47aa11dd7d2f27f83c11812d79c67a4c3fe20047
5
5
  SHA512:
6
- metadata.gz: ae01921ce8ccbce004a20c2d3fc18604c339df30dea37c916e3f63fbc2af8438f242459f7ca820258e3dc5add7b5c4a93c06247590a68548b650410c805e9caf
7
- data.tar.gz: 9980b44fccd350a3ad2e6db9d1fac7151e39fcf2cf48327ecec2eb26337774e881cec1ebf3ae5304c84ddfb0ca7b91cf73f0f03d101f794dfd68574eb67ec91c
6
+ metadata.gz: 9cd70e3fd6e3c70dcafd2ee726e8782b266e93fb9b6ba694e69ef279c4f83b8a49459e79756a2cf512082b2a27487b87c6041240d884d2e4d5808b78629a8eb6
7
+ data.tar.gz: b868d396f3d83aaa5fc7697aefce275ad3f7c2d6a30f66814df4f48b138422a609f96a7ada5fd80030e5151ac41a9dbf1d510e037369f25e3f7e5ceb1670ecca
data/Gemfile CHANGED
@@ -1,2 +1,11 @@
1
1
  source 'https://rubygems.org'
2
- gemspec
2
+
3
+ gemspec
4
+
5
+ logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
6
+ use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
7
+
8
+ if Dir.exist?(logstash_path) && use_logstash_source
9
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
10
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
11
+ end
@@ -0,0 +1,178 @@
1
+ :plugin: riemann
2
+ :type: output
3
+
4
+ ///////////////////////////////////////////
5
+ START - GENERATED VARIABLES, DO NOT EDIT!
6
+ ///////////////////////////////////////////
7
+ :version: %VERSION%
8
+ :release_date: %RELEASE_DATE%
9
+ :changelog_url: %CHANGELOG_URL%
10
+ :include_path: ../../../../logstash/docs/include
11
+ ///////////////////////////////////////////
12
+ END - GENERATED VARIABLES, DO NOT EDIT!
13
+ ///////////////////////////////////////////
14
+
15
+ [id="plugins-{type}-{plugin}"]
16
+
17
+ === Riemann output plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ Riemann is a network event stream processing system.
24
+
25
+ While Riemann is very similar conceptually to Logstash, it has
26
+ much more in terms of being a monitoring system replacement.
27
+
28
+ Riemann is used in Logstash much like statsd or other metric-related
29
+ outputs
30
+
31
+ You can learn about Riemann here:
32
+
33
+ * http://riemann.io/
34
+ You can see the author talk about it here:
35
+ * http://vimeo.com/38377415
36
+
37
+
38
+ [id="plugins-{type}s-{plugin}-options"]
39
+ ==== Riemann Output Configuration Options
40
+
41
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
42
+
43
+ [cols="<,<,<",options="header",]
44
+ |=======================================================================
45
+ |Setting |Input type|Required
46
+ | <<plugins-{type}s-{plugin}-debug>> |<<boolean,boolean>>|No
47
+ | <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
48
+ | <<plugins-{type}s-{plugin}-map_fields>> |<<boolean,boolean>>|No
49
+ | <<plugins-{type}s-{plugin}-port>> |<<number,number>>|No
50
+ | <<plugins-{type}s-{plugin}-protocol>> |<<string,string>>, one of `["tcp", "udp"]`|No
51
+ | <<plugins-{type}s-{plugin}-riemann_event>> |<<hash,hash>>|No
52
+ | <<plugins-{type}s-{plugin}-sender>> |<<string,string>>|No
53
+ |=======================================================================
54
+
55
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
56
+ output plugins.
57
+
58
+ &nbsp;
59
+
60
+ [id="plugins-{type}s-{plugin}-debug"]
61
+ ===== `debug`
62
+
63
+ * Value type is <<boolean,boolean>>
64
+ * Default value is `false`
65
+
66
+
67
+ Enable debugging output?
68
+
69
+ [id="plugins-{type}s-{plugin}-host"]
70
+ ===== `host`
71
+
72
+ * Value type is <<string,string>>
73
+ * Default value is `"localhost"`
74
+
75
+ The address of the Riemann server.
76
+
77
+ [id="plugins-{type}s-{plugin}-map_fields"]
78
+ ===== `map_fields`
79
+
80
+ * Value type is <<boolean,boolean>>
81
+ * Default value is `false`
82
+
83
+ If set to true automatically map all logstash defined fields to riemann event fields.
84
+ All nested logstash fields will be mapped to riemann fields containing all parent keys
85
+ separated by dots and the deepest value.
86
+
87
+ As an example, the logstash event:
88
+ [source,ruby]
89
+ {
90
+ "@timestamp":"2013-12-10T14:36:26.151+0000",
91
+ "@version": 1,
92
+ "message":"log message",
93
+ "host": "host.domain.com",
94
+ "nested_field": {
95
+ "key": "value"
96
+ }
97
+ }
98
+ Is mapped to this riemann event:
99
+ [source,ruby]
100
+ {
101
+ :time 1386686186,
102
+ :host host.domain.com,
103
+ :message log message,
104
+ :nested_field.key value
105
+ }
106
+
107
+ It can be used in conjunction with or independent of the riemann_event option.
108
+ When used with the riemann_event any duplicate keys receive their value from
109
+ riemann_event instead of the logstash event itself.
110
+
111
+ [id="plugins-{type}s-{plugin}-port"]
112
+ ===== `port`
113
+
114
+ * Value type is <<number,number>>
115
+ * Default value is `5555`
116
+
117
+ The port to connect to on your Riemann server.
118
+
119
+ [id="plugins-{type}s-{plugin}-protocol"]
120
+ ===== `protocol`
121
+
122
+ * Value can be any of: `tcp`, `udp`
123
+ * Default value is `"tcp"`
124
+
125
+ The protocol to use
126
+ UDP is non-blocking
127
+ TCP is blocking
128
+
129
+ Logstash's default output behaviour
130
+ is to never lose events
131
+ As such, we use tcp as default here
132
+
133
+ [id="plugins-{type}s-{plugin}-riemann_event"]
134
+ ===== `riemann_event`
135
+
136
+ * Value type is <<hash,hash>>
137
+ * There is no default value for this setting.
138
+
139
+ A Hash to set Riemann event fields
140
+ (http://riemann.io/concepts.html).
141
+
142
+ The following event fields are supported:
143
+ `description`, `state`, `metric`, `ttl`, `service`
144
+
145
+ Tags found on the Logstash event will automatically be added to the
146
+ Riemann event.
147
+
148
+ Any other field set here will be passed to Riemann as an event attribute.
149
+
150
+ Example:
151
+ [source,ruby]
152
+ riemann {
153
+ riemann_event => {
154
+ "metric" => "%{metric}"
155
+ "service" => "%{service}"
156
+ }
157
+ }
158
+
159
+ `metric` and `ttl` values will be coerced to a floating point value.
160
+ Values which cannot be coerced will zero (0.0).
161
+
162
+ `description`, by default, will be set to the event message
163
+ but can be overridden here.
164
+
165
+ [id="plugins-{type}s-{plugin}-sender"]
166
+ ===== `sender`
167
+
168
+ * Value type is <<string,string>>
169
+ * Default value is `"%{host}"`
170
+
171
+ The name of the sender.
172
+ This sets the `host` value
173
+ in the Riemann event
174
+
175
+
176
+
177
+ [id="plugins-{type}s-{plugin}-common-options"]
178
+ include::{include_path}/{type}.asciidoc[]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-riemann'
3
- s.version = '3.0.0'
3
+ s.version = '3.0.1'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Riemann is a network event stream processing system."
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.require_paths = ["lib"]
11
11
 
12
12
  # Files
13
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
13
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
14
14
 
15
15
  # Tests
16
16
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-riemann
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-11 00:00:00.000000000 Z
11
+ date: 2017-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -84,6 +84,7 @@ files:
84
84
  - LICENSE
85
85
  - NOTICE.TXT
86
86
  - README.md
87
+ - docs/index.asciidoc
87
88
  - lib/logstash/outputs/riemann.rb
88
89
  - logstash-output-riemann.gemspec
89
90
  - spec/outputs/riemann_spec.rb