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
# This allows you to set the maximum number of hits returned per scroll.
110
111
config:size,:validate=>:number,:default=>1000
@@ -302,10 +303,17 @@ def register
302
303
fill_hosts_from_cloud_id
303
304
setup_ssl_params!
304
305
305
-
@base_query=LogStash::Json.load(@query)
306
-
if@slices
307
-
@base_query.include?('slice') && fail(LogStash::ConfigurationError,"Elasticsearch Input Plugin's `query` option cannot specify specific `slice` when configured to manage parallel slices with `slices` option")
308
-
@slices < 1 && fail(LogStash::ConfigurationError,"Elasticsearch Input Plugin's `slices` option must be greater than zero, got `#{@slices}`")
306
+
if@response_type == 'esql'
307
+
validate_ls_version_for_esql_support!
308
+
validate_esql_query!
309
+
inform_ineffective_esql_params
310
+
else
311
+
# for the ES|QL, plugin accepts raw string query but JSON for others
312
+
@base_query=LogStash::Json.load(@query)
313
+
if@slices
314
+
@base_query.include?('slice') && fail(LogStash::ConfigurationError,"Elasticsearch Input Plugin's `query` option cannot specify specific `slice` when configured to manage parallel slices with `slices` option")
315
+
@slices < 1 && fail(LogStash::ConfigurationError,"Elasticsearch Input Plugin's `slices` option must be greater than zero, got `#{@slices}`")
316
+
end
309
317
end
310
318
311
319
@retries < 0 && fail(LogStash::ConfigurationError,"Elasticsearch Input Plugin's `retries` option must be equal or greater than zero, got `#{@retries}`")
Copy file name to clipboardExpand all lines: logstash-input-elasticsearch.gemspec
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Gem::Specification.newdo |s|
2
2
3
3
s.name='logstash-input-elasticsearch'
4
-
s.version='5.1.0'
4
+
s.version='5.2.0'
5
5
s.licenses=['Apache License (2.0)']
6
6
s.summary="Reads query results from an Elasticsearch cluster"
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/logstash-plugin install gemname. This gem is not a stand-alone program"
0 commit comments