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
@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")
289
-
@slices < 1 && fail(LogStash::ConfigurationError,"Elasticsearch Input Plugin's `slices` option must be greater than zero, got `#{@slices}`")
292
+
puts"Query mode: #{@query_mode}"
293
+
if@query_mode == 'dsl'
294
+
@base_query=LogStash::Json.load(@query)
295
+
if@slices
296
+
@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")
297
+
@slices < 1 && fail(LogStash::ConfigurationError,"Elasticsearch Input Plugin's `slices` option must be greater than zero, got `#{@slices}`")
298
+
end
290
299
end
291
300
292
301
@retries < 0 && fail(LogStash::ConfigurationError,"Elasticsearch Input Plugin's `retries` option must be equal or greater than zero, got `#{@retries}`")
0 commit comments