forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into validate_empty_index_names
- Loading branch information
Showing
10 changed files
with
143 additions
and
1 deletion.
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
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
22 changes: 22 additions & 0 deletions
22
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,22 @@ | ||
{ | ||
"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} | ||
} |
15 changes: 15 additions & 0 deletions
15
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,15 @@ | ||
{ | ||
"template": { | ||
"settings": { | ||
"index": { | ||
"hidden": true | ||
} | ||
} | ||
}, | ||
"_meta": { | ||
"description": "default settings for the agentless index template installed by x-pack", | ||
"managed": true | ||
}, | ||
"version": ${xpack.stack.template.version}, | ||
"deprecated": ${xpack.stack.template.deprecated} | ||
} |
15 changes: 15 additions & 0 deletions
15
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,15 @@ | ||
{ | ||
"index_patterns": ["agentless-*-*"], | ||
"priority": 100, | ||
"composed_of": [ | ||
"agentless@mappings", | ||
"agentless@settings" | ||
], | ||
"allow_auto_create": true, | ||
"_meta": { | ||
"description": "default agentless 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
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 |
---|---|---|
|
@@ -100,6 +100,13 @@ public class StackTemplateRegistry extends IndexTemplateRegistry { | |
public static final String SYNTHETICS_ILM_POLICY_NAME = "synthetics@lifecycle"; | ||
public static final String SYNTHETICS_INDEX_TEMPLATE_NAME = "synthetics"; | ||
|
||
////////////////////////////////////////////////////////// | ||
// 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"; | ||
|
||
/////////////////////////////////// | ||
// Kibana reporting template | ||
/////////////////////////////////// | ||
|
@@ -199,6 +206,20 @@ 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]", | ||
REGISTRY_VERSION, | ||
TEMPLATE_VERSION_VARIABLE, | ||
ADDITIONAL_TEMPLATE_VARIABLES | ||
), | ||
new IndexTemplateConfig( | ||
KIBANA_REPORTING_COMPONENT_TEMPLATE_NAME, | ||
"/[email protected]", | ||
|
@@ -287,6 +308,13 @@ protected Map<String, ComponentTemplate> getComponentTemplateConfigs() { | |
TEMPLATE_VERSION_VARIABLE, | ||
ADDITIONAL_TEMPLATE_VARIABLES | ||
), | ||
new IndexTemplateConfig( | ||
AGENTLESS_INDEX_TEMPLATE_NAME, | ||
"/[email protected]", | ||
REGISTRY_VERSION, | ||
TEMPLATE_VERSION_VARIABLE, | ||
ADDITIONAL_TEMPLATE_VARIABLES | ||
), | ||
new IndexTemplateConfig( | ||
KIBANA_REPORTING_INDEX_TEMPLATE_NAME, | ||
"/[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