in src/Elastic.CommonSchema/IndexTemplates.Generated.cs [34:118]
public static string GetIndexTemplateForElasticsearchComposable(string indexPattern = "ecs-*", string[] additionalComponents = null)
{
additionalComponents ??= new string[]{};
var userComponents = additionalComponents.Length == 0 ? "" : $", {string.Join(", ", additionalComponents.Select(a=>$"\"{a}\""))}";
return @"{
""_meta"": {
""description"": ""Template installed by ECS.NET 8.11.0 (https://github.com/elastic/ecs-dotnet)"",
""ecs_version"": ""8.11.0""
},
""composed_of"": [
""ecs_8.11.0_base"",
""ecs_8.11.0_agent"",
""ecs_8.11.0_client"",
""ecs_8.11.0_cloud"",
""ecs_8.11.0_container"",
""ecs_8.11.0_data_stream"",
""ecs_8.11.0_destination"",
""ecs_8.11.0_device"",
""ecs_8.11.0_dll"",
""ecs_8.11.0_dns"",
""ecs_8.11.0_ecs"",
""ecs_8.11.0_email"",
""ecs_8.11.0_error"",
""ecs_8.11.0_event"",
""ecs_8.11.0_faas"",
""ecs_8.11.0_file"",
""ecs_8.11.0_group"",
""ecs_8.11.0_host"",
""ecs_8.11.0_http"",
""ecs_8.11.0_log"",
""ecs_8.11.0_network"",
""ecs_8.11.0_observer"",
""ecs_8.11.0_orchestrator"",
""ecs_8.11.0_organization"",
""ecs_8.11.0_package"",
""ecs_8.11.0_process"",
""ecs_8.11.0_registry"",
""ecs_8.11.0_related"",
""ecs_8.11.0_rule"",
""ecs_8.11.0_server"",
""ecs_8.11.0_service"",
""ecs_8.11.0_source"",
""ecs_8.11.0_threat"",
""ecs_8.11.0_tls"",
""ecs_8.11.0_tracing"",
""ecs_8.11.0_url"",
""ecs_8.11.0_user_agent"",
""ecs_8.11.0_user"",
""ecs_8.11.0_vulnerability""" + userComponents + @"
],
""index_patterns"": [
""" + indexPattern + @"""
],
""priority"": 527104,
""data_stream"": {},
""template"": {
""mappings"": {
""date_detection"": false,
""dynamic_templates"": [
{
""strings_as_keyword"": {
""mapping"": {
""ignore_above"": 1024,
""type"": ""keyword""
},
""match_mapping_type"": ""string""
}
}
]
},
""settings"": {
""index"": {
""codec"": ""best_compression"",
""mapping"": {
""total_fields"": {
""limit"": 2500
}
}
}
}
}
}
";
}