logstash-input-sdee 0.7.3 → 0.7.5

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: 1f5a805de332064bc3fb54d0038a7e8adac2b38b
4
- data.tar.gz: 507a27ffa21c3e7c4e38e3217207cc7b22652074
3
+ metadata.gz: '09dce677e22f1876ddab6e3e684b6a6f6405d4a4'
4
+ data.tar.gz: db444634ea88e755948fc73451c080e5a6324d6d
5
5
  SHA512:
6
- metadata.gz: 132da9980c667224234e27dca3f06e23202fe72e0d9a73ec3bdd37f809d66c2c82c9d0f5dae6fecc7e9ab48f05902c4afe050aeaad9991326b02494d747b9cb2
7
- data.tar.gz: 67e9490b0ac75ae8f85eac525bf85c1d4f3bce65e8efcab05a34cecc9cd5ddda31336c42b5c5c7f494fe9c1a899028fec52e624b6023f6345a4173f21edea6da
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
 
@@ -169,30 +169,19 @@ class LogStash::Inputs::SDEE < LogStash::Inputs::Base
169
169
 
170
170
  public
171
171
  def run(queue)
172
- while true
172
+ while !stop?
173
173
  begin
174
- Stud.interval(@interval) do
175
- begin
176
- run_once(queue)
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 teardown
181
+ def stop
192
182
  @logger.debug? && @logger.debug("SDEE shutting down")
193
183
  unsubscribe(@request,@session) rescue nil
194
- finished
195
- end # def teardown
184
+ end # def stop
196
185
 
197
186
  private
198
187
  def run_once(queue)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-sdee'
3
- s.version = '0.7.3'
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."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-sdee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - rootik