You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
separate common methods into elasticsearch specific and shared methods (logstash-plugins#976)
specific elasticsearch methods are now into the main elasticsearch
class file and shared methods have been moved into the
PluginMixins::ElasticSearch::Common namespace.
The license checking code has been externalized and can now be
specified as argument to the build_client method.
This is code refactorting that has no end-user impact.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
## unreleased
2
2
- Refactored configuration options into specific and shared in PluginMixins namespace [#973](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/973)
3
+
- Refactored common methods into specific and shared in PluginMixins namespace [#976](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/976)
3
4
4
5
## 10.7.3
5
6
- Added composable index template support for elasticsearch version 8 [#980](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/980)
logger.error("Unable to get license information",url: url.sanitized.to_s,error_type: e.class,error: e.message)
256
+
{}
258
257
end
259
258
260
259
defhealth_check_request(url)
@@ -282,19 +281,9 @@ def healthcheck!
282
281
@logger.warn("Detected a node with a higher major version than previously observed. This could be the result of an elasticsearch cluster upgrade.",:previous_major=>@maximum_seen_major_version,:new_major=>major,:node_url=>url.sanitized.to_s)
283
282
set_new_major_version(major)
284
283
end
285
-
ifoss? || valid_es_license?(url)
286
-
meta[:state]=:alive
287
-
else
288
-
# As this version is to be shipped with Logstash 7.x we won't mark the connection as unlicensed
289
-
#
290
-
# logger.error("Cannot connect to the Elasticsearch cluster configured in the Elasticsearch output. Logstash requires the default distribution of Elasticsearch. Please update to the default distribution of Elasticsearch for full access to all free features, or switch to the OSS distribution of Logstash.", :url => url.sanitized.to_s)
291
-
# meta[:state] = :unlicensed
292
-
#
293
-
# Instead we'll log a deprecation warning and mark it as alive:
logger.warn("Attempted to resurrect connection to dead ES instance, but got an error.",url: url.sanitized.to_s,error_type: e.class,error: e.message)
@@ -306,10 +295,6 @@ def stop_resurrectionist
306
295
@resurrectionist.joinif@resurrectionist
307
296
end
308
297
309
-
deflog_license_deprecation_warn(url)
310
-
logger.warn("DEPRECATION WARNING: Connecting to an OSS distribution of Elasticsearch using the default distribution of Logstash will stop working in Logstash 8.0.0. Please upgrade to the default distribution of Elasticsearch, or use the OSS distribution of Logstash",:url=>url.sanitized.to_s)
0 commit comments