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

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

The newest version!
<#ftl output_format="JSON">
{
    "index_patterns": ["${indexName}*"],
    "settings": {
        <#if indexLifecyclePolicyRequest??>"${indexLifecyclePolicyPropertyName}": "${indexLifecyclePolicyRequest}",
        <#if indexLifecyclePolicyRequest??>"${indexLifecycleRolloverAliasPropertyName}": "${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"
            },
            "api-name": {
                "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"
            },
            "count-increment": {
                "type": "integer"
            },
            "error-count-increment": {
                "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