logstash-output-status 0.1.1 → 0.1.2
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/README.md +6 -0
- data/lib/logstash/outputs/status.rb +6 -3
- data/logstash-output-status.gemspec +1 -1
- data/spec/outputs/status_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ef51a99856a4d00e6d9196347f58408a8fedd96
|
4
|
+
data.tar.gz: 49392a61f8af1d34169f12627ee99d79866c4b0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00b8ab538f0c2c4632dcae1a0115edb878ac4c2bc8089031a26bca048b5db289f9be02fbec4f35b8122577cc3453a52071c2b2b54fad434391e66244f5705eb6
|
7
|
+
data.tar.gz: 9db99fc450035edb0616c2959cb88f417eb5b278be646136dc6cafd5bab7b85a67825bf96fb690687e05657c4cef4daa4cfc98cae244ff6d68291ba1067504fc
|
data/README.md
CHANGED
@@ -6,6 +6,12 @@ This output plugin stores the last event, and serves it as HTTP, in JSON.
|
|
6
6
|
|
7
7
|
This code use copy/paste oriented programmation, from http input and elapsed filter.
|
8
8
|
|
9
|
+
# Install
|
10
|
+
|
11
|
+
You can install the stable gem with this command
|
12
|
+
|
13
|
+
/opt/logstash/bin/plugin install logstash-output-status
|
14
|
+
|
9
15
|
# Example
|
10
16
|
|
11
17
|
```
|
@@ -95,7 +95,7 @@ class LogStash::Outputs::Status < LogStash::Outputs::Base
|
|
95
95
|
use(Rack::Auth::Basic, &auth) if auth
|
96
96
|
run(p)
|
97
97
|
end
|
98
|
-
@
|
98
|
+
@server.run
|
99
99
|
end # def register
|
100
100
|
|
101
101
|
public
|
@@ -110,7 +110,10 @@ class LogStash::Outputs::Status < LogStash::Outputs::Base
|
|
110
110
|
public
|
111
111
|
|
112
112
|
def close
|
113
|
-
@
|
114
|
-
@server.
|
113
|
+
return unless @server
|
114
|
+
@server.stop(true)
|
115
|
+
@server.binder.close if @server.binder
|
116
|
+
rescue IOError
|
117
|
+
# do nothing
|
115
118
|
end # def close
|
116
119
|
end # class LogStash::Outputs::Status
|
data/spec/outputs/status_spec.rb
CHANGED