logstash-filter-empowclassifier 0.3.17 → 0.3.18
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf5b905aefb124ab7b19acf66fc8353dc6184c18cff3283123757bea00a6c14b
|
4
|
+
data.tar.gz: 6444d99e54834955caf25a39db38b7e09b2646044ea8c0380eff36e7f1912223
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9104d6a2d640512b22841c1a69087a8daa7c11a4bda6cb79b15e85a2e9db5f3d24d9ec9d0c1d97f5214d041fb7839c5576e08c977b35eb3d90f7beefc480f04
|
7
|
+
data.tar.gz: '081f993e370beb1e944aa369bba155912354490bcc0ab82b956a9026656ebdba9b34cc620fe23ff6060fc2ca589c26427f395363c6d3f616995b577cc2190627'
|
@@ -81,7 +81,7 @@ module LogStash
|
|
81
81
|
begin
|
82
82
|
res = classify_online(requests)
|
83
83
|
rescue StandardError => e
|
84
|
-
@logger.debug("encountered an unexpected error on the 2nd attempt", :error => e)
|
84
|
+
@logger.debug("encountered an unexpected error on the 2nd attempt", :error => e, :backtrace => e.backtrace)
|
85
85
|
|
86
86
|
error_message = rescue_http_error_result(e)
|
87
87
|
|
@@ -20,8 +20,8 @@ class LogStash::Filters::EmpowClassifier < LogStash::Filters::Base
|
|
20
20
|
# The password for the classification center.
|
21
21
|
config :password, :validate => :string, :required => true
|
22
22
|
|
23
|
-
#
|
24
|
-
config :
|
23
|
+
# authentication hash. this parameter needs to be set only when using an entire empow stack, freeware users should leave this unchanged.
|
24
|
+
config :authentication_hash, :validate => :string, :default => '8dljcvt4jfif762le0ald6j'
|
25
25
|
|
26
26
|
# Size of the local response cache
|
27
27
|
config :cache_size, :validate => :number, :default => 10000
|
@@ -135,7 +135,7 @@ class LogStash::Filters::EmpowClassifier < LogStash::Filters::Base
|
|
135
135
|
local_classifier = LogStash::Filters::Empow::LocalClassifier.new(@cache_size, CACHE_TTL, @async_local_cache, local_db)
|
136
136
|
|
137
137
|
base_url = get_effective_url()
|
138
|
-
online_classifier = LogStash::Filters::Empow::ClassificationCenterClient.new(@username, @password, @
|
138
|
+
online_classifier = LogStash::Filters::Empow::ClassificationCenterClient.new(@username, @password, @authentication_hash, base_url)
|
139
139
|
|
140
140
|
classifer = LogStash::Filters::Empow::Classifier.new(online_classifier, local_classifier, @max_classification_center_workers, @bulk_request_size, @bulk_request_interval, @max_query_retries, @time_between_queries)
|
141
141
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-filter-empowclassifier'
|
3
|
-
s.version = '0.3.
|
3
|
+
s.version = '0.3.18'
|
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.'
|
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.18
|
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-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|