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

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

There is a newer version: 5.6.0
Show newest version
<#ftl output_format="JSON">
{
    "index_patterns": ["${indexName}*"],
    "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"
            },
            "transaction-id": {
                "type": "keyword"
            },
            "api-id": {
                "type": "keyword"
            },
            "request-id": {
                "type": "keyword"
            },
            "plan-id": {
                "type": "keyword"
            },
            "application-id": {
                "type": "keyword"
            },
            "subscription-id": {
                "type": "keyword"
            },
            "client-identifier": {
                "type": "keyword"
            },
            "tenant": {
                "type": "keyword"
            },
            "zone": {
                "type": "keyword"
            },
            "http-method": {
                "type": "short"
            },
            "local-address": {
                "type": "keyword",
                "index": false
            },
            "remote-address": {
                "type": "ip"
            },
            "host": {
                "type": "keyword"
            },
            "uri": {
                "type": "keyword"
            },
            "path": {
                "type": "keyword"
            },
            "mapped-path": {
                "type": "keyword"
            },
            "user-agent": {
                "type": "keyword"
            },
            "user_agent": {
                "properties": {
                    "device": {
                        "properties": {
                            "name": {
                                "type": "keyword"
                            }
                        }
                    },
                    "name": {
                        "type": "keyword",
                        "index": true
                    },
                    "original": {
                        "type": "text"
                    },
                    "os": {
                        "properties": {
                            "full": {
                                "type": "text"
                            },
                            "name": {
                                "type": "keyword",
                                "index": true
                            },
                            "version": {
                                "type": "keyword",
                                "index": true
                            }
                        }
                    },
                    "os_name": {
                        "type": "keyword",
                        "index": true
                    },
                    "version": {
                        "type": "text"
                    }
                }
            },
            "request-content-length": {
                "type": "integer",
                "index": false
            },
            "request-ended": {
                "type": "boolean"
            },
            "endpoint": {
                "type": "keyword"
            },
            "endpoint-response-time-ms": {
                "type": "long"
            },
            "status": {
                "type": "short"
            },
            "response-content-length": {
                "type": "integer",
                "index": false
            },
            "gateway-latency-ms": {
                "type": "integer"
            },
            "gateway-response-time-ms": {
                "type": "integer"
            },
            "geoip" : {
                "properties": {
                    "continent_name":{
                        "type": "keyword",
                        "index": true
                    },
                    "country_iso_code":{
                        "type": "keyword",
                        "index": true
                    },
                    "region_name":{
                        "type": "keyword",
                        "index": true
                    },
                    "city_name":{
                        "type": "keyword",
                        "index": true
                    },
                    "location": {
                        "type": "geo_point"
                    }
                }
            },
            "user": {
                "type": "keyword"
            },
            "security-type": {
                "type": "keyword",
                "index": true
            },
            "security-token": {
                "type": "keyword",
                "index": true
            },
            "error-message": {
                "type": "text"
            },
            "error-key": {
                "type": "keyword",
                "index": true
            }
            <#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