logstash-output-elasticsearch 12.0.1-java → 12.0.3-java

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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/docs/index.asciidoc +18 -8
  4. data/lib/logstash/outputs/elasticsearch/data_stream_support.rb +0 -1
  5. data/lib/logstash/outputs/elasticsearch/http_client/manticore_adapter.rb +1 -4
  6. data/lib/logstash/outputs/elasticsearch/http_client/pool.rb +17 -20
  7. data/lib/logstash/outputs/elasticsearch/http_client.rb +25 -24
  8. data/lib/logstash/outputs/elasticsearch/ilm.rb +1 -11
  9. data/lib/logstash/outputs/elasticsearch/template_manager.rb +1 -1
  10. data/lib/logstash/outputs/elasticsearch.rb +10 -45
  11. data/logstash-output-elasticsearch.gemspec +1 -1
  12. data/spec/es_spec_helper.rb +35 -27
  13. data/spec/integration/outputs/compressed_indexing_spec.rb +5 -5
  14. data/spec/integration/outputs/delete_spec.rb +4 -4
  15. data/spec/integration/outputs/ilm_spec.rb +18 -12
  16. data/spec/integration/outputs/index_spec.rb +7 -7
  17. data/spec/integration/outputs/index_version_spec.rb +7 -7
  18. data/spec/integration/outputs/no_es_on_startup_spec.rb +1 -1
  19. data/spec/integration/outputs/painless_update_spec.rb +11 -10
  20. data/spec/integration/outputs/parent_spec.rb +2 -3
  21. data/spec/integration/outputs/retry_spec.rb +2 -10
  22. data/spec/integration/outputs/sniffer_spec.rb +5 -40
  23. data/spec/integration/outputs/unsupported_actions_spec.rb +15 -10
  24. data/spec/integration/outputs/update_spec.rb +11 -9
  25. data/spec/spec_helper.rb +8 -0
  26. data/spec/unit/outputs/elasticsearch/data_stream_support_spec.rb +0 -23
  27. data/spec/unit/outputs/elasticsearch/http_client/pool_spec.rb +12 -54
  28. data/spec/unit/outputs/elasticsearch/template_manager_spec.rb +3 -8
  29. data/spec/unit/outputs/elasticsearch_spec.rb +15 -17
  30. data/spec/unit/outputs/error_whitelist_spec.rb +0 -1
  31. metadata +2 -12
  32. data/lib/logstash/outputs/elasticsearch/templates/ecs-disabled/elasticsearch-6x.json +0 -45
  33. data/lib/logstash/outputs/elasticsearch/templates/ecs-v1/elasticsearch-6x.json +0 -3695
  34. data/spec/fixtures/_nodes/6x.json +0 -81
  35. data/spec/fixtures/template-with-policy-es6x.json +0 -48
  36. data/spec/support/elasticsearch/api/actions/get_alias.rb +0 -18
  37. data/spec/support/elasticsearch/api/actions/put_alias.rb +0 -24
@@ -1,81 +0,0 @@
1
- {
2
- "_nodes" : {
3
- "total" : 3,
4
- "successful" : 3,
5
- "failed" : 0
6
- },
7
- "cluster_name" : "dev",
8
- "nodes" : {
9
- "Ur_68iBvTlm7Xr1HgSsh6w" : {
10
- "name" : "dev-es-master01",
11
- "transport_address" : "http://localhost:9200",
12
- "host" : "localhost",
13
- "ip" : "127.0.0.1",
14
- "version" : "6.8.10",
15
- "build_hash" : "19c13d0",
16
- "roles" : [
17
- "master"
18
- ],
19
- "http" : {
20
- "bound_address" : [
21
- "[::]:9200"
22
- ],
23
- "publish_address" : "127.0.0.1:9200",
24
- "max_content_length_in_bytes" : 104857600
25
- }
26
- },
27
- "sari4do3RG-mgh2CIZeHwA" : {
28
- "name" : "dev-es-data01",
29
- "transport_address" : "http://localhost:9201",
30
- "host" : "localhost",
31
- "ip" : "127.0.0.1",
32
- "version" : "6.8.10",
33
- "build_hash" : "19c13d0",
34
- "roles" : [
35
- "data"
36
- ],
37
- "http" : {
38
- "bound_address" : [
39
- "[::]:9200"
40
- ],
41
- "publish_address" : "127.0.0.1:9201",
42
- "max_content_length_in_bytes" : 104857600
43
- }
44
- },
45
- "Rjy1WL66RHm4fyzXA8PCGQ" : {
46
- "name" : "dev-es-datamaster01",
47
- "transport_address" : "http://localhost:9202",
48
- "host" : "localhost",
49
- "ip" : "127.0.0.1",
50
- "version" : "6.8.10",
51
- "build_hash" : "19c13d0",
52
- "roles" : [
53
- "data",
54
- "master"
55
- ],
56
- "http" : {
57
- "bound_address" : [
58
- "[::]:9200"
59
- ],
60
- "publish_address" : "127.0.0.1:9202",
61
- "max_content_length_in_bytes" : 104857600
62
- }
63
- },
64
- "OguP_obcT_S9JYNB8SKKgQ" : {
65
- "name" : "dev-es-coordinator01",
66
- "transport_address" : "http://localhost:9203",
67
- "host" : "localhost",
68
- "ip" : "127.0.0.1",
69
- "version" : "6.8.10",
70
- "build_hash" : "19c13d0",
71
- "roles" : [ ],
72
- "http" : {
73
- "bound_address" : [
74
- "[::]:9200"
75
- ],
76
- "publish_address" : "127.0.0.1:9203",
77
- "max_content_length_in_bytes" : 104857600
78
- }
79
- }
80
- }
81
- }
@@ -1,48 +0,0 @@
1
- {
2
- "template" : "overwrite-*",
3
- "version" : 60001,
4
- "settings" : {
5
- "index.refresh_interval" : "1s",
6
- "number_of_shards": 1,
7
- "index.lifecycle.name": "overwrite-policy",
8
- "index.lifecycle.rollover_alias": "overwrite"
9
- },
10
- "mappings" : {
11
- "_default_" : {
12
- "dynamic_templates" : [ {
13
- "message_field" : {
14
- "path_match" : "message",
15
- "match_mapping_type" : "string",
16
- "mapping" : {
17
- "type" : "text",
18
- "norms" : false
19
- }
20
- }
21
- }, {
22
- "string_fields" : {
23
- "match" : "*",
24
- "match_mapping_type" : "string",
25
- "mapping" : {
26
- "type" : "text", "norms" : false,
27
- "fields" : {
28
- "keyword" : { "type": "keyword", "ignore_above": 256 }
29
- }
30
- }
31
- }
32
- } ],
33
- "properties" : {
34
- "@timestamp": { "type": "date"},
35
- "@version": { "type": "keyword"},
36
- "geoip" : {
37
- "dynamic": true,
38
- "properties" : {
39
- "ip": { "type": "ip" },
40
- "location" : { "type" : "geo_point" },
41
- "latitude" : { "type" : "half_float" },
42
- "longitude" : { "type" : "half_float" }
43
- }
44
- }
45
- }
46
- }
47
- }
48
- }
@@ -1,18 +0,0 @@
1
- # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2
- # or more contributor license agreements. Licensed under the Elastic License;
3
- # you may not use this file except in compliance with the Elastic License.
4
-
5
- module Elasticsearch
6
- module API
7
- module Actions
8
-
9
- # Retrieve the list of index lifecycle management policies
10
- def get_alias(arguments={})
11
- method = HTTP_GET
12
- path = Utils.__pathify '_alias', Utils.__escape(arguments[:name])
13
- params = {}
14
- perform_request(method, path, params, nil).body
15
- end
16
- end
17
- end
18
- end
@@ -1,24 +0,0 @@
1
- # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2
- # or more contributor license agreements. Licensed under the Elastic License;
3
- # you may not use this file except in compliance with the Elastic License.
4
-
5
- module Elasticsearch
6
- module API
7
- module Actions
8
-
9
- # @option arguments [String] :name The name of the alias (*Required*)
10
- # @option arguments [Hash] :The alias definition(*Required*)
11
-
12
- def put_alias(arguments={})
13
- raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
14
- raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
15
- method = HTTP_PUT
16
- path = Utils.__pathify Utils.__escape(arguments[:name])
17
-
18
- params = Utils.__validate_and_extract_params arguments
19
- body = arguments[:body]
20
- perform_request(method, path, params, body.to_json).body
21
- end
22
- end
23
- end
24
- end