logstash-output-loggly 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 +17 -4
- data/lib/logstash/outputs/loggly.rb +2 -9
- data/logstash-output-loggly.gemspec +3 -4
- data/spec/outputs/loggly_spec.rb +1 -1
- 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: 23b05abc68f0b0f97dcce808afe058e8379c75fe
|
4
|
+
data.tar.gz: 9bad41594e9d4f9464fffbebfe410374984142f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1419b08088c89e0a787b4cb02ba06035dd7be7d1804ff56ffa5c2b2712e3811d221de6cd82f0c3094b6aefcc9ea64624a9f58a822e5d2759a40ee8a389ea920
|
7
|
+
data.tar.gz: 998805840a88dbce7f9a3b6ff26d9419efe7760b46c8a3a4b8612b62706c8ba13b30f6da472a111af6ef1de711449a5a74c150b9bea54aaef610112fd0594ba4
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,14 @@
|
|
1
|
-
|
1
|
+
## 3.0.0
|
2
|
+
- update to the new plugin api
|
3
|
+
- update travis.yml
|
4
|
+
- relax contraints on logstash-core-plugin-api
|
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
|
- Adding exception handling and retries
|
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,10 @@
|
|
1
|
+
## Maintainers Needed
|
2
|
+
|
3
|
+
This plugin needs maintainers, please comment on https://github.com/logstash-plugins/logstash-output-loggly/issues/20 if you would like to maintain this plugin. Thanks!
|
4
|
+
|
1
5
|
# Logstash Plugin
|
2
6
|
|
3
|
-
[](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-loggly-unit/)
|
7
|
+
[](https://travis-ci.org/logstash-plugins/logstash-output-loggly)
|
5
8
|
|
6
9
|
This is a plugin for [Logstash](https://github.com/elastic/logstash).
|
7
10
|
|
@@ -56,7 +59,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
|
|
56
59
|
```
|
57
60
|
- Install plugin
|
58
61
|
```sh
|
62
|
+
# Logstash 2.3 and higher
|
63
|
+
bin/logstash-plugin install --no-verify
|
64
|
+
|
65
|
+
# Prior to Logstash 2.3
|
59
66
|
bin/plugin install --no-verify
|
67
|
+
|
60
68
|
```
|
61
69
|
- Run Logstash with your plugin
|
62
70
|
```sh
|
@@ -74,7 +82,12 @@ gem build logstash-filter-awesome.gemspec
|
|
74
82
|
```
|
75
83
|
- Install the plugin from the Logstash home
|
76
84
|
```sh
|
77
|
-
|
85
|
+
# Logstash 2.3 and higher
|
86
|
+
bin/logstash-plugin install --no-verify
|
87
|
+
|
88
|
+
# Prior to Logstash 2.3
|
89
|
+
bin/plugin install --no-verify
|
90
|
+
|
78
91
|
```
|
79
92
|
- Start Logstash and proceed to test the plugin
|
80
93
|
|
@@ -86,4 +99,4 @@ Programming is not a required skill. Whatever you've seen about open source and
|
|
86
99
|
|
87
100
|
It is more important to the community that you are able to contribute.
|
88
101
|
|
89
|
-
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
102
|
+
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
@@ -89,27 +89,20 @@ class LogStash::Outputs::Loggly < LogStash::Outputs::Base
|
|
89
89
|
HTTP_INTERNAL_SERVER_ERROR = "500"
|
90
90
|
HTTP_GATEWAY_TIMEOUT = "504"
|
91
91
|
|
92
|
-
public
|
92
|
+
public
|
93
93
|
def register
|
94
94
|
# nothing to do
|
95
95
|
end
|
96
96
|
|
97
97
|
public
|
98
98
|
def receive(event)
|
99
|
-
|
100
|
-
|
101
|
-
if event == LogStash::SHUTDOWN
|
102
|
-
finished
|
103
|
-
return
|
104
|
-
end
|
105
|
-
|
106
99
|
key = event.sprintf(@key)
|
107
100
|
tag = event.sprintf(@tag)
|
108
101
|
|
109
102
|
# For those cases where %{somefield} doesn't exist
|
110
103
|
# we should ship logs with the default tag value.
|
111
104
|
tag = 'logstash' if /^%{\w+}/.match(tag)
|
112
|
-
|
105
|
+
|
113
106
|
# Send event
|
114
107
|
send_event("#{@proto}://#{@host}/inputs/#{key}/tag/#{tag}", format_message(event))
|
115
108
|
end # def receive
|
@@ -1,10 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
|
-
|
3
2
|
s.name = 'logstash-output-loggly'
|
4
|
-
s.version = '
|
3
|
+
s.version = '3.0.0'
|
5
4
|
s.licenses = ['Apache License (2.0)']
|
6
5
|
s.summary = "Got a loggly account? Use logstash to ship logs to Loggly!"
|
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_development_dependency 'logstash-devutils'
|
26
25
|
s.add_development_dependency 'logstash-codec-plain'
|
data/spec/outputs/loggly_spec.rb
CHANGED
@@ -30,7 +30,7 @@ describe 'outputs/loggly' do
|
|
30
30
|
context 'when outputting messages' do
|
31
31
|
it 'should support field interpolation on key' do
|
32
32
|
# add a custom key value for Loggly config
|
33
|
-
event
|
33
|
+
event.set('token', 'xxxxxxx1234567')
|
34
34
|
config['key'] = '%{token}'
|
35
35
|
|
36
36
|
output = LogStash::Outputs::Loggly.new(config)
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-loggly
|
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-09-09 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:
|
@@ -52,7 +58,7 @@ dependencies:
|
|
52
58
|
- - ">="
|
53
59
|
- !ruby/object:Gem::Version
|
54
60
|
version: '0'
|
55
|
-
description: This gem is a
|
61
|
+
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
|
56
62
|
email: info@elastic.co
|
57
63
|
executables: []
|
58
64
|
extensions: []
|