logstash-output-opensearch 1.3.0-java → 2.0.2-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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/COMPATIBILITY.md +5 -3
- data/MAINTAINERS.md +14 -64
- data/README.md +51 -34
- data/RELEASING.md +5 -1
- data/docs/ecs_compatibility.md +42 -0
- data/lib/logstash/outputs/opensearch/http_client/manticore_adapter.rb +43 -12
- data/lib/logstash/outputs/opensearch/http_client/pool.rb +11 -2
- data/lib/logstash/outputs/opensearch/http_client.rb +28 -6
- data/lib/logstash/outputs/opensearch/http_client_builder.rb +4 -2
- data/lib/logstash/outputs/opensearch/template_manager.rb +6 -5
- data/lib/logstash/outputs/opensearch/templates/ecs-disabled/1x_index.json +66 -0
- data/lib/logstash/outputs/opensearch/templates/ecs-disabled/2x_index.json +66 -0
- data/lib/logstash/outputs/opensearch/templates/ecs-disabled/7x_index.json +66 -0
- data/lib/logstash/outputs/opensearch/templates/ecs-v8/1x_index.json +5254 -0
- data/lib/logstash/outputs/opensearch/templates/ecs-v8/2x_index.json +5254 -0
- data/lib/logstash/outputs/opensearch/templates/ecs-v8/7x_index.json +5254 -0
- data/lib/logstash/outputs/opensearch.rb +7 -0
- data/logstash-output-opensearch.gemspec +2 -2
- data/spec/unit/outputs/opensearch/http_client/manticore_adapter_spec.rb +72 -14
- data/spec/unit/outputs/opensearch/http_client_spec.rb +20 -0
- data/spec/unit/outputs/opensearch/template_manager_spec.rb +8 -20
- data.tar.gz.sig +0 -0
- metadata +20 -19
- metadata.gz.sig +0 -0
@@ -0,0 +1,66 @@
|
|
1
|
+
{
|
2
|
+
"index_patterns": "logstash-*",
|
3
|
+
"version": 60001,
|
4
|
+
"priority": 10,
|
5
|
+
"template": {
|
6
|
+
"settings": {
|
7
|
+
"index.refresh_interval": "5s",
|
8
|
+
"number_of_shards": 1
|
9
|
+
},
|
10
|
+
"mappings": {
|
11
|
+
"dynamic_templates": [
|
12
|
+
{
|
13
|
+
"message_field": {
|
14
|
+
"path_match": "message",
|
15
|
+
"match_mapping_type": "string",
|
16
|
+
"mapping": {
|
17
|
+
"type": "text",
|
18
|
+
"norms": false
|
19
|
+
}
|
20
|
+
}
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"string_fields": {
|
24
|
+
"match": "*",
|
25
|
+
"match_mapping_type": "string",
|
26
|
+
"mapping": {
|
27
|
+
"type": "text",
|
28
|
+
"norms": false,
|
29
|
+
"fields": {
|
30
|
+
"keyword": {
|
31
|
+
"type": "keyword",
|
32
|
+
"ignore_above": 256
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
],
|
39
|
+
"properties": {
|
40
|
+
"@timestamp": {
|
41
|
+
"type": "date"
|
42
|
+
},
|
43
|
+
"@version": {
|
44
|
+
"type": "keyword"
|
45
|
+
},
|
46
|
+
"geoip": {
|
47
|
+
"dynamic": true,
|
48
|
+
"properties": {
|
49
|
+
"ip": {
|
50
|
+
"type": "ip"
|
51
|
+
},
|
52
|
+
"location": {
|
53
|
+
"type": "geo_point"
|
54
|
+
},
|
55
|
+
"latitude": {
|
56
|
+
"type": "half_float"
|
57
|
+
},
|
58
|
+
"longitude": {
|
59
|
+
"type": "half_float"
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
{
|
2
|
+
"index_patterns": "logstash-*",
|
3
|
+
"version": 60001,
|
4
|
+
"priority": 10,
|
5
|
+
"template": {
|
6
|
+
"settings": {
|
7
|
+
"index.refresh_interval": "5s",
|
8
|
+
"number_of_shards": 1
|
9
|
+
},
|
10
|
+
"mappings": {
|
11
|
+
"dynamic_templates": [
|
12
|
+
{
|
13
|
+
"message_field": {
|
14
|
+
"path_match": "message",
|
15
|
+
"match_mapping_type": "string",
|
16
|
+
"mapping": {
|
17
|
+
"type": "text",
|
18
|
+
"norms": false
|
19
|
+
}
|
20
|
+
}
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"string_fields": {
|
24
|
+
"match": "*",
|
25
|
+
"match_mapping_type": "string",
|
26
|
+
"mapping": {
|
27
|
+
"type": "text",
|
28
|
+
"norms": false,
|
29
|
+
"fields": {
|
30
|
+
"keyword": {
|
31
|
+
"type": "keyword",
|
32
|
+
"ignore_above": 256
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
],
|
39
|
+
"properties": {
|
40
|
+
"@timestamp": {
|
41
|
+
"type": "date"
|
42
|
+
},
|
43
|
+
"@version": {
|
44
|
+
"type": "keyword"
|
45
|
+
},
|
46
|
+
"geoip": {
|
47
|
+
"dynamic": true,
|
48
|
+
"properties": {
|
49
|
+
"ip": {
|
50
|
+
"type": "ip"
|
51
|
+
},
|
52
|
+
"location": {
|
53
|
+
"type": "geo_point"
|
54
|
+
},
|
55
|
+
"latitude": {
|
56
|
+
"type": "half_float"
|
57
|
+
},
|
58
|
+
"longitude": {
|
59
|
+
"type": "half_float"
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|