freemarker.es6x.mapping.index-template-log.ftl Maven / Gradle / Ivy
<#ftl output_format="JSON">
{
"index_patterns": ["${indexName}*"],
"settings": {
"index.number_of_shards":${numberOfShards},
"index.number_of_replicas":${numberOfReplicas},
"index.refresh_interval": "${refreshInterval}"
<#if extendedSettingsTemplate??>,<#include "/${extendedSettingsTemplate}">#if>
},
"mappings": {
"log": {
"properties": {
"@timestamp": {
"type": "date"
},
"api": {
"type": "keyword"
},
"client-request": {
"type": "object",
"properties": {
"body":{
"type": "text"
},
"headers": {
"enabled": false,
"type": "object"
}
}
},
"client-response": {
"type": "object",
"properties": {
"body":{
"type": "text"
},
"headers": {
"enabled": false,
"type": "object"
}
}
},
"proxy-request": {
"type": "object",
"properties": {
"body":{
"type": "text"
},
"headers": {
"enabled": false,
"type": "object"
}
}
},
"proxy-response": {
"type": "object",
"properties": {
"body":{
"type": "text"
},
"headers": {
"enabled": false,
"type": "object"
}
}
}
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy