logstash-codec-nmap 0.0.7 → 0.0.8

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: 7ff37aabd978959373cfb2dc42a13a24fb8f5609
4
- data.tar.gz: 5af74a2cb0944aa6aa07f6d690fb1e327ab0bbf0
3
+ metadata.gz: 9c543021609ff02abbd46bcee4e6e19a03a0f633
4
+ data.tar.gz: d7a3a506e59afa50b3aea025efd8fe26cf0f1a6c
5
5
  SHA512:
6
- metadata.gz: f3dd7f3acd90936a68fa2dfdf17e96cbf0d2da7409550c1a57f32739b7ffc37a19276fb9b56bfc0f0afd9cbf8ae317c55876f961fb43cd1c810913d4ab899f78
7
- data.tar.gz: 2d92bc2b3858763095413cc1259c42bf9cde9d6df675adc6d27caf2dfabad3ebe154155c1be80f1098981f5944a6b6de8ea9cb8c364e2d72b2b384cc5350bc81
6
+ metadata.gz: 14386bf959fc10399a5bd055e19000d63ebe4c3cffcab6d78449f21f88da96c8ada6d3dadaace05da7e373b669cf89703ec99b34946d2a266f3cba04ae0a89ff
7
+ data.tar.gz: b1094edbf2f42fa2bef8a3e97af97d6beceae221bc612d1684e36e4fceba6ab8e7440a94bc19970182528fa1a944cda076ffa5060ea4efe07402ed464c8463a5
@@ -164,10 +164,11 @@ class LogStash::Codecs::Nmap < LogStash::Codecs::Base
164
164
  def hashify_service(service)
165
165
  return unless service
166
166
 
167
+ protocol = service.protocol rescue nil
167
168
  {
168
169
  'name' => service.name,
169
170
  'ssl' => service.ssl?,
170
- 'protocol' => service.protocol,
171
+ 'protocol' => protocol,
171
172
  'product' => service.product,
172
173
  'hostname' => service.hostname, # This is just a string
173
174
  'device_type' => service.device_type,
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-nmap'
4
- s.version = '0.0.7'
4
+ s.version = '0.0.8'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This codec may be used to decode Nmap XML"
7
7
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-nmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic