Index template:
{
"order": 0,
"index_patterns": [
"agl-api-*"
],
"settings": {
"index": {
"lifecycle": {
"name": "AVS-logs",
"rollover_alias": "agl-*"
},
"refresh_interval": "10s",
"number_of_shards": "5",
"number_of_replicas": "1"
}
},
"aliases": {
"agl": {}
},
"mappings": {
"_doc": {
"_source": {},
"_meta": {},
"dynamic_templates": [
{
"message_field": {
"path_match": "message",
"mapping": {
"norms": false,
"type": "text"
},
"match_mapping_type": "string"
}
},
{
"string_fields": {
"mapping": {
"norms": false,
"fields": {
"keyword": {
"ignore_above": 256,
"type": "keyword"
}
},
"type": "text"
},
"match_mapping_type": "string",
"match": "*"
}
}
],
"properties": {
"@timestamp": {
"type": "date"
},
"@version": {
"norms": false,
"type": "keyword"
},
"additional-data": {
"norms": false,
"type": "text"
},
"agent": {
"dynamic": true,
"type": "object",
"enabled": true,
"properties": {
"hostname": {
"norms": false,
"type": "keyword"
},
"name": {
"norms": false,
"type": "text"
},
"version": {
"norms": false,
"type": "text"
}
}
},
"api-brand": {
"norms": false,
"type": "keyword"
},
"api-nanoservice": {
"norms": false,
"type": "keyword"
},
"api-platform": {
"norms": false,
"type": "keyword"
},
"api-query-string": {
"norms": false,
"type": "text"
},
"api-tenant": {
"norms": false,
"type": "keyword"
},
"api-type": {
"norms": false,
"type": "keyword"
},
"api-url": {
"norms": false,
"type": "text"
},
"api-version": {
"norms": false,
"type": "keyword"
},
"app-id": {
"norms": false,
"type": "keyword"
},
"client-ip": {
"type": "ip"
},
"event-type": {
"norms": false,
"type": "keyword"
},
"execution-time": {
"type": "integer"
},
"fields": {
"type": "object",
"properties": {
"environment": {
"norms": false,
"type": "keyword"
}
}
},
"host": {
"norms": false,
"type": "keyword"
},
"http-verb": {
"norms": false,
"type": "keyword"
},
"log-level": {
"norms": false,
"type": "keyword"
},
"log-message": {
"norms": false,
"type": "text"
},
"message": {
"norms": false,
"type": "text"
},
"ms-error-message": {
"norms": false,
"type": "text"
},
"ms-host": {
"norms": false,
"type": "keyword"
},
"ms-request-body": {
"norms": false,
"type": "text"
},
"ms-result": {
"norms": false,
"type": "keyword"
},
"ms-result-code": {
"norms": false,
"type": "text"
},
"ms-url": {
"norms": false,
"type": "text"
},
"offset": {
"type": "long"
},
"platform": {
"norms": false,
"type": "keyword"
},
"prospector": {
"type": "object",
"properties": {
"type": {
"norms": false,
"type": "text"
}
}
},
"session-id": {
"norms": false,
"type": "text"
},
"source": {
"norms": false,
"type": "text"
},
"tags": {
"norms": false,
"type": "text"
},
"thread-id": {
"type": "integer"
},
"transaction-id": {
"norms": false,
"type": "text"
},
"user-id": {
"norms": false,
"type": "text"
},
"username": {
"norms": false,
"type": "text"
}
}
}
}
}