logstash-filter-empowclassifier 0.3.21 → 0.3.23
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 247f7c74fd62e08857d7eab95a795432e4e83742a0a5cfceb089c16e0fc7fdae
|
4
|
+
data.tar.gz: 7331f3bf2ce795cf779104700ee2418fb7e1ecca56fa91671ee08d0e5b8303c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52608ce0343e00cf4b2597815dcb2e7bafb1f32d858965a1cbf07ca5399ccde4f0372a5ce64b056a3f691dd5a0b57601bb38eca0e6bc19c74b3890f96745a740
|
7
|
+
data.tar.gz: cc91711eeaf7ff6420a8c01b6082e925080f3c9066177b8fae760ad05d4cba26d6116655c5ea53c63bb6469f9a5a269f614f453f2f64704a6b0c0f1042283150
|
@@ -152,7 +152,7 @@ module LogStash
|
|
152
152
|
|
153
153
|
return RestClient::Request.execute(
|
154
154
|
method: :post,
|
155
|
-
url: "#{@url_base}/
|
155
|
+
url: "#{@url_base}/intent",
|
156
156
|
payload: payload_json,
|
157
157
|
timeout: 30,
|
158
158
|
headers: { content_type: 'application/json', accept: 'application/json', authorization: @token, Bulksize: bulk_size }
|
@@ -121,7 +121,7 @@ class LogStash::Filters::EmpowClassifier < LogStash::Filters::Base
|
|
121
121
|
config :tag_on_timeout, :validate => :array, :default => ['_empow_classifer_timeout']
|
122
122
|
config :tag_on_error, :validate => :array, :default => ['_empow_classifer_error']
|
123
123
|
|
124
|
-
CLASSIFICATION_URL =
|
124
|
+
CLASSIFICATION_URL = 'https://intent.cloud.empow.co'
|
125
125
|
CACHE_TTL = (24*60*60)
|
126
126
|
|
127
127
|
public
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-filter-empowclassifier'
|
3
|
-
s.version = '0.3.
|
3
|
+
s.version = '0.3.23'
|
4
4
|
s.licenses = ['Apache-2.0']
|
5
5
|
s.summary = 'Logstash intent classification plugin client for accessing empow''s classifiction cloud'
|
6
6
|
#s.description = 'Write a longer description or delete this line.'
|
7
|
-
s.homepage = 'http://www.
|
7
|
+
s.homepage = 'http://www.empow.co'
|
8
8
|
s.authors = ['empow', 'Assaf Abulafia', 'Rami Cohen']
|
9
9
|
s.email = ''
|
10
10
|
s.require_paths = ['lib']
|
@@ -35,4 +35,4 @@ Gem::Specification.new do |s|
|
|
35
35
|
s.add_development_dependency "webmock", "~> 1.22", ">= 1.21.0"
|
36
36
|
|
37
37
|
s.add_development_dependency 'elasticsearch'
|
38
|
-
end
|
38
|
+
end
|
data/spec/filters/assaf_spec.rb
CHANGED
@@ -12,7 +12,7 @@ describe LogStash::Filters::Empow::ClassificationCenterClient do
|
|
12
12
|
# allow(LogStash::Filters::Empow::LocalClassifier).to receive(:new).and_return(local_classifier)
|
13
13
|
# end
|
14
14
|
|
15
|
-
let(:url_base) { 'https://
|
15
|
+
let(:url_base) { 'https://intent.cloud.empow.co' }
|
16
16
|
let(:username) { 'assafa@empownetworks.com' }
|
17
17
|
let(:password) { 'Empow2018!' }
|
18
18
|
let(:pool_id) { '131n94ktfg7lj8hlpnnbkuiql1' }
|
@@ -24,8 +24,8 @@ describe LogStash::Filters::Empow::ClassificationCenterClient do
|
|
24
24
|
client.authenticate
|
25
25
|
|
26
26
|
term = {}
|
27
|
-
term[:
|
28
|
-
req1 = LogStash::Filters::Empow::ClassificationRequest.new('
|
27
|
+
term[:signature] = '1:238'
|
28
|
+
req1 = LogStash::Filters::Empow::ClassificationRequest.new('IDS', 'snort', term)
|
29
29
|
|
30
30
|
i = 0
|
31
31
|
while true do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-empowclassifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- empow
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-02-
|
13
|
+
date: 2019-02-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -219,7 +219,7 @@ files:
|
|
219
219
|
- spec/filters/plugin-logic_spec.rb
|
220
220
|
- spec/filters/utils_spec.rb
|
221
221
|
- spec/spec_helper.rb
|
222
|
-
homepage: http://www.
|
222
|
+
homepage: http://www.empow.co
|
223
223
|
licenses:
|
224
224
|
- Apache-2.0
|
225
225
|
metadata:
|