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
RUN if [ "$SECURE_INTEGRATION" = "true" ] ; then echo "xpack.security.http.ssl.enabled: true" >> $es_yml; fi
15
15
RUN if [ "$SECURE_INTEGRATION" = "true" ] ; then echo "xpack.security.http.ssl.key: $es_path/config/test_certs/es.key" >> $es_yml; fi
16
-
RUN if [ "$SECURE_INTEGRATION" = "true" ] ; then echo "xpack.security.http.ssl.certificate: $es_path/config/test_certs/es.crt" >> $es_yml; fi
16
+
RUN if [ "$SECURE_INTEGRATION" = "true" ] ; then echo "xpack.security.http.ssl.certificate: $es_path/config/test_certs/es.chain.crt" >> $es_yml; fi
17
17
RUN if [ "$SECURE_INTEGRATION" = "true" ] ; then echo "xpack.security.http.ssl.certificate_authorities: [ '$es_path/config/test_certs/ca.crt' ]" >> $es_yml; fi
18
18
RUN if [ "$SECURE_INTEGRATION" = "true" ] ; then echo "xpack.security.http.ssl.verification_mode: certificate" >> $es_yml; fi
19
19
RUN if [ "$SECURE_INTEGRATION" = "true" ] && [ -n "$ES_SSL_SUPPORTED_PROTOCOLS" ] ; then echo "xpack.security.http.ssl.supported_protocols: ${ES_SSL_SUPPORTED_PROTOCOLS}" >> $es_yml; fi
- When a hit cannot be converted to an event, the input now emits an event tagged with `_elasticsearch_input_failure` with an `[event][original]` containing a JSON-encoded string representation of the entire hit.
4
+
5
+
## 5.0.0
6
+
- SSL settings that were marked deprecated in version `4.17.0` are now marked obsolete, and will prevent the plugin from starting.
7
+
- These settings are:
8
+
-`ssl`, which should bre replaced by `ssl_enabled`
9
+
-`ca_file`, which should bre replaced by `ssl_certificate_authorities`
10
+
-`ssl_certificate_verification`, which should bre replaced by `ssl_verification_mode`
- Add support for custom headers [#207](https://github.com/logstash-plugins/logstash-input-elasticsearch/pull/207)
13
+
14
+
## 4.20.5
15
+
- Add `x-elastic-product-origin` header to Elasticsearch requests [#211](https://github.com/logstash-plugins/logstash-input-elasticsearch/pull/211)
16
+
17
+
## 4.20.4
18
+
- Fix issue where the `index` parameter was being ignored when using `response_type => aggregations`[#209](https://github.com/logstash-plugins/logstash-input-elasticsearch/pull/209)
19
+
20
+
## 4.20.3
21
+
-[DOC] Update link to bypass redirect, resolving directly to correct content [#206](https://github.com/logstash-plugins/logstash-input-elasticsearch/pull/206)
22
+
1
23
## 4.20.2
2
24
- fix case when aggregation returns an error [#204](https://github.com/logstash-plugins/logstash-input-elasticsearch/pull/204)
Read from an Elasticsearch cluster, based on search query results.
25
25
This is useful for replaying test logs, reindexing, etc.
26
-
You can periodically schedule ingestion using a cron syntax
26
+
You can periodically schedule ingestion using a cron syntax
27
27
(see `schedule` setting) or run the query one time to load
28
28
data into Logstash.
29
29
@@ -93,10 +93,23 @@ The plugin logs a warning when ECS is enabled and `target` isn't set.
93
93
94
94
TIP: Set the `target` option to avoid potential schema conflicts.
95
95
96
+
[id="plugins-{type}s-{plugin}-failure-handling"]
97
+
==== Failure handling
98
+
99
+
When this input plugin cannot create a structured `Event` from a hit result, it will instead create an `Event` that is tagged with `_elasticsearch_input_failure` whose `[event][original]` is a JSON-encoded string representation of the entire hit.
100
+
101
+
Common causes are:
102
+
103
+
- When the hit result contains top-level fields that are {logstash-ref}/processing.html#reserved-fields[reserved in Logstash] but do not have the expected shape. Use the <<plugins-{type}s-{plugin}-target>> directive to avoid conflicts with the top-level namespace.
104
+
- When <<plugins-{type}s-{plugin}-docinfo>> is enabled and the docinfo fields cannot be merged into the hit result. Combine <<plugins-{type}s-{plugin}-target>> and <<plugins-{type}s-{plugin}-docinfo_target>> to avoid conflict.
105
+
96
106
[id="plugins-{type}s-{plugin}-options"]
97
107
==== Elasticsearch Input configuration options
98
108
99
-
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> and the <<plugins-{type}s-{plugin}-deprecated-options>> described later.
109
+
This plugin supports these configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
110
+
111
+
NOTE: As of version `5.0.0` of this plugin, a number of previously deprecated settings related to SSL have been removed.
112
+
Please check out <<plugins-{type}s-{plugin}-obsolete-options>> for details.
The maximum amount of time, in seconds, to wait while establishing a connection to Elasticsearch.
200
214
Connect timeouts tend to occur when Elasticsearch or an intermediate proxy is overloaded with requests and has exhausted its connection pool.
201
215
216
+
[id="plugins-{type}s-{plugin}-custom_headers"]
217
+
===== `custom_headers`
218
+
219
+
* Value type is <<hash,hash>>
220
+
* Default value is empty
221
+
222
+
Pass a set of key value pairs as the headers sent in each request to an elasticsearch node.
223
+
The headers will be used for any kind of request.
224
+
These custom headers will override any headers previously set by the plugin such as the User Agent or Authorization headers.
225
+
202
226
[id="plugins-{type}s-{plugin}-docinfo"]
203
-
===== `docinfo`
227
+
===== `docinfo`
204
228
205
229
* Value type is <<boolean,boolean>>
206
230
* Default value is `false`
@@ -251,7 +275,7 @@ Example
251
275
252
276
253
277
[id="plugins-{type}s-{plugin}-docinfo_fields"]
254
-
===== `docinfo_fields`
278
+
===== `docinfo_fields`
255
279
256
280
* Value type is <<array,array>>
257
281
* Default value is `["_index", "_type", "_id"]`
@@ -262,7 +286,7 @@ option lists the metadata fields to save in the current event. See
262
286
more information.
263
287
264
288
[id="plugins-{type}s-{plugin}-docinfo_target"]
265
-
===== `docinfo_target`
289
+
===== `docinfo_target`
266
290
267
291
* Value type is <<string,string>>
268
292
* Default value depends on whether <<plugins-{type}s-{plugin}-ecs_compatibility>> is enabled:
@@ -286,7 +310,7 @@ this option names the field under which to store the metadata fields as subfield
286
310
Controls this plugin's compatibility with the {ecs-ref}[Elastic Common Schema (ECS)].
287
311
288
312
[id="plugins-{type}s-{plugin}-hosts"]
289
-
===== `hosts`
313
+
===== `hosts`
290
314
291
315
* Value type is <<array,array>>
292
316
* There is no default value for this setting.
@@ -296,18 +320,18 @@ can be either IP, HOST, IP:port, or HOST:port. The port defaults to
296
320
9200.
297
321
298
322
[id="plugins-{type}s-{plugin}-index"]
299
-
===== `index`
323
+
===== `index`
300
324
301
325
* Value type is <<string,string>>
302
326
* Default value is `"logstash-*"`
303
327
304
-
The index or alias to search. See {ref}/multi-index.html[Multi Indices
305
-
documentation] in the Elasticsearch documentation for more information on how to
306
-
reference multiple indices.
307
-
328
+
The index or alias to search.
329
+
Check out {ref}/api-conventions.html#api-multi-index[Multi Indices
330
+
documentation] in the Elasticsearch documentation for info on
331
+
referencing multiple indices.
308
332
309
333
[id="plugins-{type}s-{plugin}-password"]
310
-
===== `password`
334
+
===== `password`
311
335
312
336
* Value type is <<password,password>>
313
337
* There is no default value for this setting.
@@ -327,7 +351,7 @@ An empty string is treated as if proxy was not set, this is useful when using
327
351
environment variables e.g. `proxy => '${LS_PROXY:}'`.
328
352
329
353
[id="plugins-{type}s-{plugin}-query"]
330
-
===== `query`
354
+
===== `query`
331
355
332
356
* Value type is <<string,string>>
333
357
* Default value is `'{ "sort": [ "_doc" ] }'`
@@ -375,7 +399,7 @@ The default is 0 (no retry). This value should be equal to or greater than zero.
375
399
NOTE: Partial failures - such as errors in a subset of all slices - can result in the entire query being retried, which can lead to duplication of data. Avoiding this would require Logstash to store the entire result set of a query in memory which is often not possible.
376
400
377
401
[id="plugins-{type}s-{plugin}-schedule"]
378
-
===== `schedule`
402
+
===== `schedule`
379
403
380
404
* Value type is <<string,string>>
381
405
* There is no default value for this setting.
@@ -387,7 +411,7 @@ There is no schedule by default. If no schedule is given, then the statement is
387
411
exactly once.
388
412
389
413
[id="plugins-{type}s-{plugin}-scroll"]
390
-
===== `scroll`
414
+
===== `scroll`
391
415
392
416
* Value type is <<string,string>>
393
417
* Default value is `"1m"`
@@ -410,7 +434,7 @@ The query requires at least one `sort` field, as described in the <<plugins-{typ
410
434
`scroll` uses {ref}/paginate-search-results.html#scroll-search-results[scroll] API to search, which is no longer recommended.
411
435
412
436
[id="plugins-{type}s-{plugin}-size"]
413
-
===== `size`
437
+
===== `size`
414
438
415
439
* Value type is <<number,number>>
416
440
* Default value is `1000`
@@ -478,6 +502,8 @@ Enable SSL/TLS secured communication to Elasticsearch cluster.
478
502
Leaving this unspecified will use whatever scheme is specified in the URLs listed in <<plugins-{type}s-{plugin}-hosts>> or extracted from the <<plugins-{type}s-{plugin}-cloud_id>>.
479
503
If no explicit protocol is specified plain HTTP will be used.
480
504
505
+
When not explicitly set, SSL will be automatically enabled if any of the specified hosts use HTTPS.
506
+
481
507
[id="plugins-{type}s-{plugin}-ssl_key"]
482
508
===== `ssl_key`
483
509
* Value type is <<path,path>>
@@ -598,7 +624,7 @@ It is also possible to target an entry in the event's metadata, which will be av
598
624
599
625
600
626
[id="plugins-{type}s-{plugin}-user"]
601
-
===== `user`
627
+
===== `user`
602
628
603
629
* Value type is <<string,string>>
604
630
* There is no default value for this setting.
@@ -608,56 +634,21 @@ option when authenticating to the Elasticsearch server. If set to an
0 commit comments