logstash-output-elasticsearch 10.5.1-java → 10.7.3-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/CONTRIBUTORS +1 -0
  4. data/docs/index.asciidoc +142 -81
  5. data/lib/logstash/outputs/elasticsearch.rb +33 -0
  6. data/lib/logstash/outputs/elasticsearch/common.rb +21 -8
  7. data/lib/logstash/outputs/elasticsearch/common_configs.rb +3 -3
  8. data/lib/logstash/outputs/elasticsearch/http_client.rb +6 -2
  9. data/lib/logstash/outputs/elasticsearch/ilm.rb +1 -1
  10. data/lib/logstash/outputs/elasticsearch/template_manager.rb +20 -12
  11. data/lib/logstash/outputs/elasticsearch/{elasticsearch-template-es2x.json → templates/ecs-disabled/elasticsearch-2x.json} +0 -0
  12. data/lib/logstash/outputs/elasticsearch/{elasticsearch-template-es5x.json → templates/ecs-disabled/elasticsearch-5x.json} +0 -0
  13. data/lib/logstash/outputs/elasticsearch/{elasticsearch-template-es6x.json → templates/ecs-disabled/elasticsearch-6x.json} +0 -0
  14. data/lib/logstash/outputs/elasticsearch/{elasticsearch-template-es7x.json → templates/ecs-disabled/elasticsearch-7x.json} +0 -0
  15. data/lib/logstash/outputs/elasticsearch/templates/ecs-disabled/elasticsearch-8x.json +50 -0
  16. data/lib/logstash/outputs/elasticsearch/templates/ecs-v1/elasticsearch-6x.json +2950 -0
  17. data/lib/logstash/outputs/elasticsearch/templates/ecs-v1/elasticsearch-7x.json +2948 -0
  18. data/logstash-output-elasticsearch.gemspec +2 -1
  19. data/spec/es_spec_helper.rb +32 -12
  20. data/spec/fixtures/template-with-policy-es8x.json +50 -0
  21. data/spec/integration/outputs/ilm_spec.rb +36 -22
  22. data/spec/integration/outputs/metrics_spec.rb +1 -5
  23. data/spec/unit/outputs/elasticsearch/http_client_spec.rb +22 -0
  24. data/spec/unit/outputs/elasticsearch/template_manager_spec.rb +40 -3
  25. data/spec/unit/outputs/elasticsearch_spec.rb +23 -1
  26. data/spec/unit/outputs/error_whitelist_spec.rb +1 -1
  27. metadata +25 -7
  28. data/lib/logstash/outputs/elasticsearch/elasticsearch-template-es8x.json +0 -44
@@ -1,44 +0,0 @@
1
- {
2
- "index_patterns" : "logstash-*",
3
- "version" : 80001,
4
- "settings" : {
5
- "index.refresh_interval" : "5s",
6
- "number_of_shards": 1
7
- },
8
- "mappings" : {
9
- "dynamic_templates" : [ {
10
- "message_field" : {
11
- "path_match" : "message",
12
- "match_mapping_type" : "string",
13
- "mapping" : {
14
- "type" : "text",
15
- "norms" : false
16
- }
17
- }
18
- }, {
19
- "string_fields" : {
20
- "match" : "*",
21
- "match_mapping_type" : "string",
22
- "mapping" : {
23
- "type" : "text", "norms" : false,
24
- "fields" : {
25
- "keyword" : { "type": "keyword", "ignore_above": 256 }
26
- }
27
- }
28
- }
29
- } ],
30
- "properties" : {
31
- "@timestamp": { "type": "date"},
32
- "@version": { "type": "keyword"},
33
- "geoip" : {
34
- "dynamic": true,
35
- "properties" : {
36
- "ip": { "type": "ip" },
37
- "location" : { "type" : "geo_point" },
38
- "latitude" : { "type" : "half_float" },
39
- "longitude" : { "type" : "half_float" }
40
- }
41
- }
42
- }
43
- }
44
- }