-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
x-pack/plugin/core/template-resources/src/main/resources/[email protected]
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,21 @@ | ||
{ | ||
"template": { | ||
"mappings": { | ||
"properties": { | ||
"v": { | ||
"type": "object", | ||
"enabled": false | ||
}, | ||
"updated_at": { | ||
"type": "date", | ||
"format": "strict_date_optional_time||epoch_millis" | ||
} | ||
} | ||
}, | ||
"_meta": { | ||
"description": "default mappings for the agentless index template installed by x-pack", | ||
"managed": true | ||
}, | ||
"version": ${xpack.stack.template.version}, | ||
"deprecated": ${xpack.stack.template.deprecated} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,6 +102,7 @@ public class StackTemplateRegistry extends IndexTemplateRegistry { | |
////////////////////////////////////////////////////////// | ||
// Agentless components (for matching agentless-*-* indices) | ||
////////////////////////////////////////////////////////// | ||
public static final String AGENTLESS_MAPPINGS_COMPONENT_TEMPLATE_NAME = "agentless@mappings"; | ||
public static final String AGENTLESS_SETTINGS_COMPONENT_TEMPLATE_NAME = "agentless@settings"; | ||
public static final String AGENTLESS_INDEX_TEMPLATE_NAME = "agentless"; | ||
|
||
|
@@ -204,6 +205,13 @@ private Map<String, ComponentTemplate> loadComponentTemplateConfigs() { | |
TEMPLATE_VERSION_VARIABLE, | ||
ADDITIONAL_TEMPLATE_VARIABLES | ||
), | ||
new IndexTemplateConfig( | ||
AGENTLESS_MAPPINGS_COMPONENT_TEMPLATE_NAME, | ||
"/[email protected]", | ||
REGISTRY_VERSION, | ||
TEMPLATE_VERSION_VARIABLE, | ||
ADDITIONAL_TEMPLATE_VARIABLES | ||
), | ||
new IndexTemplateConfig( | ||
AGENTLESS_SETTINGS_COMPONENT_TEMPLATE_NAME, | ||
"/[email protected]", | ||
|