logstash-input-sdee 0.7.3 → 0.7.5
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 +2 -2
- data/lib/logstash/inputs/sdee.rb +6 -17
- data/logstash-input-sdee.gemspec +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: '09dce677e22f1876ddab6e3e684b6a6f6405d4a4'
|
|
4
|
+
data.tar.gz: db444634ea88e755948fc73451c080e5a6324d6d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c87f3c6d78215b1d9c0a7641a9d95a06b6fd05cf8309d844cf5ede1607fe1b18223c0f7df2b1940bf19acc654124e013b4590c1de7e2f78dd2802096faa16392
|
|
7
|
+
data.tar.gz: 2d972510234f326ff8d9b26f6ff72487a2106625aa3832465d5075413b77e1048626deb71ae53c57916933719a118b1d412f0420514792a83daaa1ff5de11076
|
data/README.md
CHANGED
|
@@ -113,7 +113,7 @@ gem "logstash-input-sdee", :path => "/your/local/logstash-input-sdee"
|
|
|
113
113
|
```
|
|
114
114
|
- Install plugin
|
|
115
115
|
```sh
|
|
116
|
-
bin/plugin install --no-verify
|
|
116
|
+
bin/logstash-plugin install --no-verify
|
|
117
117
|
```
|
|
118
118
|
- Run Logstash with your plugin
|
|
119
119
|
```sh
|
|
@@ -173,7 +173,7 @@ gem build logstash-input-sdee.gemspec
|
|
|
173
173
|
```
|
|
174
174
|
- Install the plugin from the Logstash home
|
|
175
175
|
```sh
|
|
176
|
-
bin/plugin install /your/local/plugin/logstash-input-sdee.gem
|
|
176
|
+
bin/logstash-plugin install /your/local/plugin/logstash-input-sdee.gem
|
|
177
177
|
```
|
|
178
178
|
- Start Logstash and proceed to test the plugin
|
|
179
179
|
|
data/lib/logstash/inputs/sdee.rb
CHANGED
|
@@ -169,30 +169,19 @@ class LogStash::Inputs::SDEE < LogStash::Inputs::Base
|
|
|
169
169
|
|
|
170
170
|
public
|
|
171
171
|
def run(queue)
|
|
172
|
-
while
|
|
172
|
+
while !stop?
|
|
173
173
|
begin
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
end while (@remaining > 0)
|
|
178
|
-
end
|
|
179
|
-
rescue LogStash::ShutdownSignal
|
|
180
|
-
teardown
|
|
181
|
-
break
|
|
182
|
-
rescue IOError, EOFError
|
|
183
|
-
teardown
|
|
184
|
-
break
|
|
185
|
-
end
|
|
174
|
+
run_once(queue)
|
|
175
|
+
end while (@remaining > 0)
|
|
176
|
+
Stud.stoppable_sleep(@interval) { stop? }
|
|
186
177
|
end
|
|
187
|
-
finished
|
|
188
178
|
end
|
|
189
179
|
|
|
190
180
|
public
|
|
191
|
-
def
|
|
181
|
+
def stop
|
|
192
182
|
@logger.debug? && @logger.debug("SDEE shutting down")
|
|
193
183
|
unsubscribe(@request,@session) rescue nil
|
|
194
|
-
|
|
195
|
-
end # def teardown
|
|
184
|
+
end # def stop
|
|
196
185
|
|
|
197
186
|
private
|
|
198
187
|
def run_once(queue)
|
data/logstash-input-sdee.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'logstash-input-sdee'
|
|
3
|
-
s.version = '0.7.
|
|
3
|
+
s.version = '0.7.5'
|
|
4
4
|
s.date = '2016-08-17'
|
|
5
5
|
s.summary = "Logstah SDEE input from Cisco ASA"
|
|
6
6
|
s.description = "This Logstash input plugin allows you to call a Cisco SDEE/CIDEE HTTP API, decode the output of it into event(s), and send them on their merry way."
|