logstash-output-elasticsearch 11.0.2-java → 11.1.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/docs/index.asciidoc +11 -11
- data/lib/logstash/outputs/elasticsearch/http_client/pool.rb +2 -28
- data/lib/logstash/outputs/elasticsearch/http_client.rb +19 -0
- data/lib/logstash/outputs/elasticsearch/ilm.rb +2 -33
- data/lib/logstash/outputs/elasticsearch/template_manager.rb +1 -1
- data/lib/logstash/outputs/elasticsearch.rb +3 -14
- data/lib/logstash/plugin_mixins/elasticsearch/common.rb +5 -1
- data/logstash-output-elasticsearch.gemspec +3 -2
- data/spec/es_spec_helper.rb +14 -7
- data/spec/fixtures/_nodes/{5x_6x.json → 6x.json} +5 -5
- data/spec/integration/outputs/compressed_indexing_spec.rb +47 -46
- data/spec/integration/outputs/delete_spec.rb +49 -51
- data/spec/integration/outputs/ilm_spec.rb +230 -246
- data/spec/integration/outputs/index_spec.rb +5 -2
- data/spec/integration/outputs/index_version_spec.rb +78 -82
- data/spec/integration/outputs/ingest_pipeline_spec.rb +58 -60
- data/spec/integration/outputs/no_es_on_startup_spec.rb +14 -0
- data/spec/integration/outputs/painless_update_spec.rb +74 -164
- data/spec/integration/outputs/parent_spec.rb +67 -75
- data/spec/integration/outputs/retry_spec.rb +2 -2
- data/spec/integration/outputs/sniffer_spec.rb +15 -53
- data/spec/integration/outputs/templates_spec.rb +79 -81
- data/spec/integration/outputs/update_spec.rb +99 -101
- data/spec/spec_helper.rb +1 -5
- data/spec/unit/outputs/elasticsearch/data_stream_support_spec.rb +0 -14
- data/spec/unit/outputs/elasticsearch/http_client/pool_spec.rb +30 -37
- data/spec/unit/outputs/elasticsearch/http_client_spec.rb +69 -0
- data/spec/unit/outputs/elasticsearch/template_manager_spec.rb +9 -9
- data/spec/unit/outputs/elasticsearch_spec.rb +2 -8
- data/spec/unit/outputs/error_whitelist_spec.rb +1 -0
- metadata +21 -24
- data/lib/logstash/outputs/elasticsearch/templates/ecs-disabled/elasticsearch-2x.json +0 -95
- data/lib/logstash/outputs/elasticsearch/templates/ecs-disabled/elasticsearch-5x.json +0 -46
- data/lib/logstash/outputs/elasticsearch/templates/ecs-v1/elasticsearch-6x.json +0 -2950
- data/lib/logstash/outputs/elasticsearch/templates/ecs-v1/elasticsearch-7x.json +0 -2948
- data/spec/fixtures/_nodes/2x_1x.json +0 -27
- data/spec/fixtures/scripts/groovy/scripted_update.groovy +0 -2
- data/spec/fixtures/scripts/groovy/scripted_update_nested.groovy +0 -2
- data/spec/fixtures/scripts/groovy/scripted_upsert.groovy +0 -2
- data/spec/integration/outputs/groovy_update_spec.rb +0 -150
- data/spec/integration/outputs/templates_5x_spec.rb +0 -98
@@ -1,95 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"template" : "logstash-*",
|
3
|
-
"settings" : {
|
4
|
-
"index.refresh_interval" : "5s"
|
5
|
-
},
|
6
|
-
"mappings" : {
|
7
|
-
"_default_" : {
|
8
|
-
"_all" : {"enabled" : true, "omit_norms" : true},
|
9
|
-
"dynamic_templates" : [ {
|
10
|
-
"message_field" : {
|
11
|
-
"path_match" : "message",
|
12
|
-
"match_mapping_type" : "string",
|
13
|
-
"mapping" : {
|
14
|
-
"type" : "string", "index" : "analyzed", "omit_norms" : true,
|
15
|
-
"fielddata" : { "format" : "disabled" }
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}, {
|
19
|
-
"string_fields" : {
|
20
|
-
"match" : "*",
|
21
|
-
"match_mapping_type" : "string",
|
22
|
-
"mapping" : {
|
23
|
-
"type" : "string", "index" : "analyzed", "omit_norms" : true,
|
24
|
-
"fielddata" : { "format" : "disabled" },
|
25
|
-
"fields" : {
|
26
|
-
"raw" : {"type": "string", "index" : "not_analyzed", "doc_values" : true, "ignore_above" : 256}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}, {
|
31
|
-
"float_fields" : {
|
32
|
-
"match" : "*",
|
33
|
-
"match_mapping_type" : "float",
|
34
|
-
"mapping" : { "type" : "float", "doc_values" : true }
|
35
|
-
}
|
36
|
-
}, {
|
37
|
-
"double_fields" : {
|
38
|
-
"match" : "*",
|
39
|
-
"match_mapping_type" : "double",
|
40
|
-
"mapping" : { "type" : "double", "doc_values" : true }
|
41
|
-
}
|
42
|
-
}, {
|
43
|
-
"byte_fields" : {
|
44
|
-
"match" : "*",
|
45
|
-
"match_mapping_type" : "byte",
|
46
|
-
"mapping" : { "type" : "byte", "doc_values" : true }
|
47
|
-
}
|
48
|
-
}, {
|
49
|
-
"short_fields" : {
|
50
|
-
"match" : "*",
|
51
|
-
"match_mapping_type" : "short",
|
52
|
-
"mapping" : { "type" : "short", "doc_values" : true }
|
53
|
-
}
|
54
|
-
}, {
|
55
|
-
"integer_fields" : {
|
56
|
-
"match" : "*",
|
57
|
-
"match_mapping_type" : "integer",
|
58
|
-
"mapping" : { "type" : "integer", "doc_values" : true }
|
59
|
-
}
|
60
|
-
}, {
|
61
|
-
"long_fields" : {
|
62
|
-
"match" : "*",
|
63
|
-
"match_mapping_type" : "long",
|
64
|
-
"mapping" : { "type" : "long", "doc_values" : true }
|
65
|
-
}
|
66
|
-
}, {
|
67
|
-
"date_fields" : {
|
68
|
-
"match" : "*",
|
69
|
-
"match_mapping_type" : "date",
|
70
|
-
"mapping" : { "type" : "date", "doc_values" : true }
|
71
|
-
}
|
72
|
-
}, {
|
73
|
-
"geo_point_fields" : {
|
74
|
-
"match" : "*",
|
75
|
-
"match_mapping_type" : "geo_point",
|
76
|
-
"mapping" : { "type" : "geo_point", "doc_values" : true }
|
77
|
-
}
|
78
|
-
} ],
|
79
|
-
"properties" : {
|
80
|
-
"@timestamp": { "type": "date", "doc_values" : true },
|
81
|
-
"@version": { "type": "string", "index": "not_analyzed", "doc_values" : true },
|
82
|
-
"geoip" : {
|
83
|
-
"type" : "object",
|
84
|
-
"dynamic": true,
|
85
|
-
"properties" : {
|
86
|
-
"ip": { "type": "ip", "doc_values" : true },
|
87
|
-
"location" : { "type" : "geo_point", "doc_values" : true },
|
88
|
-
"latitude" : { "type" : "float", "doc_values" : true },
|
89
|
-
"longitude" : { "type" : "float", "doc_values" : true }
|
90
|
-
}
|
91
|
-
}
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
95
|
-
}
|
@@ -1,46 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"template" : "logstash-*",
|
3
|
-
"version" : 50001,
|
4
|
-
"settings" : {
|
5
|
-
"index.refresh_interval" : "5s"
|
6
|
-
},
|
7
|
-
"mappings" : {
|
8
|
-
"_default_" : {
|
9
|
-
"_all" : {"enabled" : true, "norms" : false},
|
10
|
-
"dynamic_templates" : [ {
|
11
|
-
"message_field" : {
|
12
|
-
"path_match" : "message",
|
13
|
-
"match_mapping_type" : "string",
|
14
|
-
"mapping" : {
|
15
|
-
"type" : "text",
|
16
|
-
"norms" : false
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}, {
|
20
|
-
"string_fields" : {
|
21
|
-
"match" : "*",
|
22
|
-
"match_mapping_type" : "string",
|
23
|
-
"mapping" : {
|
24
|
-
"type" : "text", "norms" : false,
|
25
|
-
"fields" : {
|
26
|
-
"keyword" : { "type": "keyword", "ignore_above": 256 }
|
27
|
-
}
|
28
|
-
}
|
29
|
-
}
|
30
|
-
} ],
|
31
|
-
"properties" : {
|
32
|
-
"@timestamp": { "type": "date", "include_in_all": false },
|
33
|
-
"@version": { "type": "keyword", "include_in_all": false },
|
34
|
-
"geoip" : {
|
35
|
-
"dynamic": true,
|
36
|
-
"properties" : {
|
37
|
-
"ip": { "type": "ip" },
|
38
|
-
"location" : { "type" : "geo_point" },
|
39
|
-
"latitude" : { "type" : "half_float" },
|
40
|
-
"longitude" : { "type" : "half_float" }
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
46
|
-
}
|