logstash-filter-greynoise 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d47cd7afd1f7d7a6173276637585c6ef77f34c017a6c4d3217dfb60bb348b913
4
- data.tar.gz: a18bdcb399a28ffa3849bb0d4c1937c042b39a22b7f482b0f0e997d381d70618
3
+ metadata.gz: e20013db29dc312f78ce31a32762283ce2548a3fdf7ed444e909a0b0465b1565
4
+ data.tar.gz: 656189f54ce78e65c6cc4dbd65d051d8a3d143032a1cda1103cdfa6f8e2cb67f
5
5
  SHA512:
6
- metadata.gz: d8a6d98c4e3f987c99d821e310f720e3b2fde984ddd2d7087f212b9dd26351456afe17cdce768b55f9b79b04aa2e2c93a52770a316e7790146078304a2f78e37
7
- data.tar.gz: 3a72cc450f862dcb0632b05458d670bf46e1f9332ad88ad0449bd2e31a215343d8683fe963b3e18e9e0739f1282a9fd710ea6b00a2c466e4f4ea13028d764846
6
+ metadata.gz: 72a0204d450c53d2825fdd43c839cbda591d9868293f667dc8106288bddadcac46454a6310d9cc39d2f647c80ab11f570807a8769f440bd0a922fd1d033db1e3
7
+ data.tar.gz: 2e6a2a1e9b7634cc94656940fee7e5f8a2dd44807bf99c6b2433eec2ffb0cc20ab92d7b4ab35bdcbeedbecf6bd7322edb96a016a0abe9b58556a813c315af9c1
data/CHANGELOG.md CHANGED
@@ -6,3 +6,5 @@
6
6
  - Added user-agent
7
7
  ## 0.1.3
8
8
  - Removed unused dependencies
9
+ ## 0.1.4
10
+ - Updated key check for len
data/README.md CHANGED
@@ -22,7 +22,7 @@ Or you can build it yourself:
22
22
  git clone https://github.com/nsherron90/logstash-filter-greynoise.git
23
23
  bundle install
24
24
  gem build logstash-filter-greynoise.gemspec
25
- $LS_HOME/bin/logstash-plugin install logstash-filter-greynoise-0.1.3.gem
25
+ $LS_HOME/bin/logstash-plugin install logstash-filter-greynoise-0.1.4.gem
26
26
  ```
27
27
 
28
28
  ### 2. Filter Configuration
@@ -37,7 +37,7 @@ class LogStash::Filters::Greynoise < LogStash::Filters::Base
37
37
  public
38
38
  def filter(event)
39
39
 
40
- if @key
40
+ if @key.length >= 25
41
41
  url = "https://enterprise.api.greynoise.io/v2/noise/context/" + event.sprintf(ip)
42
42
  uri = URI.parse(URI.encode(url.strip))
43
43
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-greynoise'
3
- s.version = '0.1.3'
3
+ s.version = '0.1.4'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'This greynoise filter takes contents in the ip field and returns greynoise api data (see https://greynoise.io/ for more info).'
6
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 logstash-filter-greynoise. This gem is not a stand-alone program'
metadata CHANGED
@@ -1,52 +1,52 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-greynoise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - nsherron90
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: logstash-core-plugin-api
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
18
  version: '2.0'
20
- type: :runtime
19
+ name: logstash-core-plugin-api
21
20
  prerelease: false
21
+ type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: logstash-devutils
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - ">="
32
31
  - !ruby/object:Gem::Version
33
32
  version: '0'
34
- type: :development
33
+ name: logstash-devutils
35
34
  prerelease: false
35
+ type: :development
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: faraday
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
44
  - - "~>"
46
45
  - !ruby/object:Gem::Version
47
46
  version: 0.9.2
48
- type: :runtime
47
+ name: faraday
49
48
  prerelease: false
49
+ type: :runtime
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
@@ -76,7 +76,7 @@ licenses:
76
76
  metadata:
77
77
  logstash_plugin: 'true'
78
78
  logstash_group: filter
79
- post_install_message:
79
+ post_install_message:
80
80
  rdoc_options: []
81
81
  require_paths:
82
82
  - lib
@@ -91,8 +91,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubygems_version: 3.0.3
95
- signing_key:
94
+ rubyforge_project:
95
+ rubygems_version: 2.7.9
96
+ signing_key:
96
97
  specification_version: 4
97
98
  summary: This greynoise filter takes contents in the ip field and returns greynoise
98
99
  api data (see https://greynoise.io/ for more info).