logstash-output-riemann 2.0.5 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -3
- data/LICENSE +1 -1
- data/README.md +12 -3
- data/lib/logstash/outputs/riemann.rb +3 -5
- data/logstash-output-riemann.gemspec +3 -4
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c518d3098303bac1ee689a2fe9d322272c96b3f3
|
4
|
+
data.tar.gz: c60899ddb3ea2407a79f0289545916da53756931
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae01921ce8ccbce004a20c2d3fc18604c339df30dea37c916e3f63fbc2af8438f242459f7ca820258e3dc5add7b5c4a93c06247590a68548b650410c805e9caf
|
7
|
+
data.tar.gz: 9980b44fccd350a3ad2e6db9d1fac7151e39fcf2cf48327ecec2eb26337774e881cec1ebf3ae5304c84ddfb0ca7b91cf73f0f03d101f794dfd68574eb67ec91c
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,14 @@
|
|
1
|
-
|
1
|
+
## 3.0.0
|
2
|
+
- Breaking: Updated plugin to use new Java Event APIs
|
3
|
+
- relax logstash-core-plugin-api constrains
|
4
|
+
- update .travis.yml
|
5
|
+
|
6
|
+
## 2.0.5
|
2
7
|
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
|
3
|
-
|
8
|
+
|
9
|
+
## 2.0.4
|
4
10
|
- New dependency requirements for logstash-core for the 5.0 release
|
11
|
+
|
5
12
|
## 2.0.3
|
6
13
|
- Fix: when using `map_fields` with `sender` hostname would not be properly set
|
7
14
|
|
@@ -9,4 +16,3 @@
|
|
9
16
|
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
10
17
|
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
11
18
|
- Dependency on logstash-core update to 2.0
|
12
|
-
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Logstash Plugin
|
2
2
|
|
3
|
-
[](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-riemann-unit/)
|
3
|
+
[](https://travis-ci.org/logstash-plugins/logstash-output-riemann)
|
5
4
|
|
6
5
|
This is a plugin for [Logstash](https://github.com/elastic/logstash).
|
7
6
|
|
@@ -56,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
|
|
56
55
|
```
|
57
56
|
- Install plugin
|
58
57
|
```sh
|
58
|
+
# Logstash 2.3 and higher
|
59
|
+
bin/logstash-plugin install --no-verify
|
60
|
+
|
61
|
+
# Prior to Logstash 2.3
|
59
62
|
bin/plugin install --no-verify
|
63
|
+
|
60
64
|
```
|
61
65
|
- Run Logstash with your plugin
|
62
66
|
```sh
|
@@ -74,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
|
|
74
78
|
```
|
75
79
|
- Install the plugin from the Logstash home
|
76
80
|
```sh
|
77
|
-
|
81
|
+
# Logstash 2.3 and higher
|
82
|
+
bin/logstash-plugin install --no-verify
|
83
|
+
|
84
|
+
# Prior to Logstash 2.3
|
85
|
+
bin/plugin install --no-verify
|
86
|
+
|
78
87
|
```
|
79
88
|
- Start Logstash and proceed to test the plugin
|
80
89
|
|
@@ -122,8 +122,6 @@ class LogStash::Outputs::Riemann < LogStash::Outputs::Base
|
|
122
122
|
|
123
123
|
public
|
124
124
|
def receive(event)
|
125
|
-
|
126
|
-
|
127
125
|
r_event = build_riemann_formatted_event(event)
|
128
126
|
|
129
127
|
@logger.debug("Riemann event: ", :riemann_event => r_event)
|
@@ -134,7 +132,7 @@ class LogStash::Outputs::Riemann < LogStash::Outputs::Base
|
|
134
132
|
# Let's build us an event, shall we?
|
135
133
|
r_event = Hash.new
|
136
134
|
|
137
|
-
r_event[:description] = event
|
135
|
+
r_event[:description] = event.get("message")
|
138
136
|
|
139
137
|
if @riemann_event
|
140
138
|
@riemann_event.each do |key, val|
|
@@ -148,10 +146,10 @@ class LogStash::Outputs::Riemann < LogStash::Outputs::Base
|
|
148
146
|
if @map_fields == true
|
149
147
|
r_event.merge! map_fields(nil, event.to_hash)
|
150
148
|
end
|
151
|
-
r_event[:tags] = event
|
149
|
+
r_event[:tags] = event.get("tags") if event.get("tags").is_a?(Array)
|
152
150
|
r_event[:host] = event.sprintf(@sender)
|
153
151
|
# riemann doesn't handle floats so we reduce the precision here
|
154
|
-
r_event[:time] = event
|
152
|
+
r_event[:time] = event.timestamp.to_i
|
155
153
|
|
156
154
|
return r_event
|
157
155
|
end
|
@@ -1,10 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
|
-
|
3
2
|
s.name = 'logstash-output-riemann'
|
4
|
-
s.version = '
|
3
|
+
s.version = '3.0.0'
|
5
4
|
s.licenses = ['Apache License (2.0)']
|
6
5
|
s.summary = "Riemann is a network event stream processing system."
|
7
|
-
s.description = "This gem is a
|
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"
|
8
7
|
s.authors = ["Elastic"]
|
9
8
|
s.email = 'info@elastic.co'
|
10
9
|
s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
|
@@ -20,7 +19,7 @@ Gem::Specification.new do |s|
|
|
20
19
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
|
21
20
|
|
22
21
|
# Gem dependencies
|
23
|
-
s.add_runtime_dependency "logstash-core-plugin-api", "
|
22
|
+
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
|
24
23
|
|
25
24
|
s.add_runtime_dependency 'riemann-client', ['0.2.1']
|
26
25
|
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-riemann
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
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
|
+
date: 2016-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- - "
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.60'
|
19
|
+
- - "<="
|
17
20
|
- !ruby/object:Gem::Version
|
18
|
-
version: '
|
21
|
+
version: '2.99'
|
19
22
|
name: logstash-core-plugin-api
|
20
23
|
prerelease: false
|
21
24
|
type: :runtime
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.60'
|
30
|
+
- - "<="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
32
|
+
version: '2.99'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
requirement: !ruby/object:Gem::Requirement
|
29
35
|
requirements:
|
@@ -66,7 +72,7 @@ dependencies:
|
|
66
72
|
- - ">="
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: '0'
|
69
|
-
description: This gem is a
|
75
|
+
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
|
70
76
|
email: info@elastic.co
|
71
77
|
executables: []
|
72
78
|
extensions: []
|