-
-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of Index templates across ES versions.
- Loading branch information
Gavin Williams
committed
Jun 25, 2020
1 parent
ab6c1be
commit b9eba78
Showing
6 changed files
with
71 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,4 +56,4 @@ | |
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"index_patterns": [ "logstash-*" ], | ||
"version": 123, | ||
"settings": { | ||
"index": { | ||
"refresh_interval": "5s", | ||
"analysis": { | ||
"analyzer": { | ||
"default": { | ||
"type": "standard", | ||
"stopwords": "_none_" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"mappings": { | ||
"dynamic_templates": [ | ||
{ | ||
"string_fields": { | ||
"match": "*", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "multi_field", | ||
"fields": { | ||
"{name}": { | ||
"type": "text", | ||
"index": "analyzed", | ||
"omit_norms": true | ||
}, | ||
"raw": { | ||
"type ": "text", | ||
"index": "not_analyzed", | ||
"ignore_above": 256 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,30 @@ | ||
{ | ||
"index_patterns": [ "logstash-*" ], | ||
"version": 123, | ||
"settings": { | ||
"index": { | ||
"refresh_interval": "5s", | ||
"analysis": { | ||
"analyzer": { | ||
"default": { | ||
"type": "standard", | ||
"stopwords": "_none_" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"mappings": { | ||
"dynamic_templates": [ | ||
{ | ||
"string_fields": { | ||
"match": "*", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "multi_field", | ||
"fields": { | ||
"{name}": { | ||
"type": "text", | ||
"index": "analyzed", | ||
"omit_norms": true | ||
}, | ||
"raw": { | ||
"type ": "text", | ||
"index": "not_analyzed", | ||
"ignore_above": 256 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"properties": { | ||
"@version": { | ||
"type": "text", | ||
"index": false | ||
"index_patterns": ["te*", "bar*"], | ||
"template": { | ||
"settings": { | ||
"number_of_shards": 1 | ||
}, | ||
"mappings": { | ||
"_source": { | ||
"enabled": false | ||
}, | ||
"geoip": { | ||
"type": "object", | ||
"dynamic": true, | ||
"properties": { | ||
"location": { | ||
"type": "geo_point" | ||
} | ||
"properties": { | ||
"host_name": { | ||
"type": "keyword" | ||
}, | ||
"created_at": { | ||
"type": "date", | ||
"format": "EEE MMM dd HH:mm:ss Z yyyy" | ||
} | ||
} | ||
}, | ||
"aliases": { | ||
"mydata": { } | ||
} | ||
}, | ||
"priority": 10, | ||
"version": 3, | ||
"_meta": { | ||
"description": "my custom" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters