All Downloads are FREE. Search and download functionalities are using the official Maven repository.

freemarker.es8x.mapping.index-template-v4-message-metrics.ftl Maven / Gradle / Ivy

There is a newer version: 5.6.0
Show newest version
<#ftl output_format="JSON">
{
    "index_patterns": ["${indexName}*"],
    "template": {
        "settings": {
            <#if indexLifecyclePolicyRequest??>"${indexLifecyclePolicyPropertyName}": "${indexLifecyclePolicyRequest}",
            <#if indexLifecyclePolicyRequest??>"index.lifecycle.rollover_alias": "${indexName}",
            "index.number_of_shards":${numberOfShards},
            "index.number_of_replicas":${numberOfReplicas},
            "index.refresh_interval": "${refreshInterval}"
            <#if extendedSettingsTemplate??>,<#include "/${extendedSettingsTemplate}">
        },
        "mappings": {
            "properties": {
                "gateway": {
                    "type": "keyword"
                },
                "@timestamp": {
                    "type": "date"
                },
                "api-id": {
                    "type": "keyword"
                },
                "request-id": {
                    "type": "keyword"
                },
                "client-identifier": {
                    "type": "keyword"
                },
                "correlation-id": {
                    "type": "keyword"
                },
                "parent-correlation-id": {
                    "type": "keyword"
                },
                "operation": {
                    "type": "keyword"
                },
                "connector-type": {
                    "type": "keyword"
                },
                "connector-id": {
                    "type": "keyword"
                },
                "content-length": {
                    "type": "integer"
                },
                "count": {
                    "type": "integer"
                },
                "error-count": {
                    "type": "integer"
                },
                "error": {
                    "type": "boolean"
                },
                "gateway-latency-ms": {
                    "type": "integer"
                }
                <#if extendedRequestMappingTemplate??>,<#include "/${extendedRequestMappingTemplate}">
            },
            "dynamic_templates": [
                {
                    "strings_as_keywords": {
                        "path_match": "custom.*",
                        "match_mapping_type": "string",
                        "mapping": {
                            "type": "keyword"
                        }
                    }
                }
            ]
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy