Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Elasticsearch APM doc type mapping
{
"apm-6.1.1-2018.01.13": {
"mappings": {
"doc": {
"_meta": {
"version": "6.1.1"
},
"dynamic_templates": [
{
"fields": {
"path_match": "fields.*",
"match_mapping_type": "string",
"mapping": {
"type": "keyword"
}
}
},
{
"docker.container.labels": {
"path_match": "docker.container.labels.*",
"match_mapping_type": "string",
"mapping": {
"type": "keyword"
}
}
},
{
"context.tags": {
"path_match": "context.tags.*",
"match_mapping_type": "string",
"mapping": {
"type": "keyword"
}
}
},
{
"strings_as_keyword": {
"match_mapping_type": "string",
"mapping": {
"ignore_above": 1024,
"type": "keyword"
}
}
}
],
"date_detection": false,
"properties": {
"@timestamp": {
"type": "date"
},
"beat": {
"properties": {
"hostname": {
"type": "keyword",
"ignore_above": 1024
},
"name": {
"type": "keyword",
"ignore_above": 1024
},
"timezone": {
"type": "keyword",
"ignore_above": 1024
},
"version": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"context": {
"dynamic": "false",
"properties": {
"app": {
"properties": {
"agent": {
"properties": {
"name": {
"type": "keyword",
"ignore_above": 1024
},
"version": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"framework": {
"properties": {
"name": {
"type": "keyword",
"ignore_above": 1024
},
"version": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"language": {
"properties": {
"name": {
"type": "keyword",
"ignore_above": 1024
},
"version": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"name": {
"type": "keyword",
"ignore_above": 1024
},
"pid": {
"type": "long"
},
"process_title": {
"type": "keyword",
"ignore_above": 1024
},
"runtime": {
"properties": {
"name": {
"type": "keyword",
"ignore_above": 1024
},
"version": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"version": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"request": {
"properties": {
"http_version": {
"type": "keyword",
"ignore_above": 1024
},
"method": {
"type": "keyword",
"ignore_above": 1024
},
"url": {
"properties": {
"hash": {
"type": "keyword",
"ignore_above": 1024
},
"hostname": {
"type": "keyword",
"ignore_above": 1024
},
"pathname": {
"type": "keyword",
"ignore_above": 1024
},
"port": {
"type": "keyword",
"ignore_above": 1024
},
"protocol": {
"type": "keyword",
"ignore_above": 1024
},
"raw": {
"type": "keyword",
"ignore_above": 1024
},
"search": {
"type": "keyword",
"ignore_above": 1024
}
}
}
}
},
"response": {
"properties": {
"finished": {
"type": "boolean"
},
"status_code": {
"type": "long"
}
}
},
"system": {
"properties": {
"architecture": {
"type": "keyword",
"ignore_above": 1024
},
"hostname": {
"type": "keyword",
"ignore_above": 1024
},
"platform": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"tags": {
"type": "object",
"dynamic": "true"
},
"user": {
"properties": {
"email": {
"type": "keyword",
"ignore_above": 1024
},
"id": {
"type": "keyword",
"ignore_above": 1024
},
"username": {
"type": "keyword",
"ignore_above": 1024
}
}
}
}
},
"docker": {
"properties": {
"container": {
"properties": {
"id": {
"type": "keyword",
"ignore_above": 1024
},
"image": {
"type": "keyword",
"ignore_above": 1024
},
"labels": {
"type": "object"
},
"name": {
"type": "keyword",
"ignore_above": 1024
}
}
}
}
},
"error": {
"dynamic": "false",
"properties": {
"code": {
"type": "long"
},
"culprit": {
"type": "text",
"norms": false
},
"exception": {
"properties": {
"code": {
"type": "keyword",
"ignore_above": 1024
},
"message": {
"type": "text",
"norms": false
},
"module": {
"type": "keyword",
"ignore_above": 1024
},
"type": {
"type": "keyword",
"ignore_above": 1024
},
"uncaught": {
"type": "boolean"
}
}
},
"grouping_key": {
"type": "keyword",
"ignore_above": 1024
},
"id": {
"type": "keyword",
"ignore_above": 1024
},
"log": {
"properties": {
"level": {
"type": "keyword",
"ignore_above": 1024
},
"logger_name": {
"type": "keyword",
"ignore_above": 1024
},
"message": {
"type": "text",
"norms": false
},
"param_message": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"message": {
"type": "text",
"norms": false
},
"type": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"error id icon": {
"type": "keyword",
"ignore_above": 1024
},
"fields": {
"type": "object"
},
"kubernetes": {
"properties": {
"annotations": {
"type": "object"
},
"container": {
"properties": {
"image": {
"type": "keyword",
"ignore_above": 1024
},
"name": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"labels": {
"type": "object"
},
"namespace": {
"type": "keyword",
"ignore_above": 1024
},
"pod": {
"properties": {
"name": {
"type": "keyword",
"ignore_above": 1024
}
}
}
}
},
"listening": {
"type": "keyword",
"ignore_above": 1024
},
"meta": {
"properties": {
"cloud": {
"properties": {
"availability_zone": {
"type": "keyword",
"ignore_above": 1024
},
"instance_id": {
"type": "keyword",
"ignore_above": 1024
},
"instance_name": {
"type": "keyword",
"ignore_above": 1024
},
"machine_type": {
"type": "keyword",
"ignore_above": 1024
},
"project_id": {
"type": "keyword",
"ignore_above": 1024
},
"provider": {
"type": "keyword",
"ignore_above": 1024
},
"region": {
"type": "keyword",
"ignore_above": 1024
}
}
}
}
},
"processor": {
"properties": {
"event": {
"type": "keyword",
"ignore_above": 1024
},
"name": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"tags": {
"type": "keyword",
"ignore_above": 1024
},
"trace": {
"dynamic": "false",
"properties": {
"duration": {
"properties": {
"us": {
"type": "long"
}
}
},
"id": {
"type": "long"
},
"name": {
"type": "keyword",
"ignore_above": 1024
},
"parent": {
"type": "long"
},
"start": {
"properties": {
"us": {
"type": "long"
}
}
},
"transaction_id": {
"type": "keyword",
"ignore_above": 1024
},
"type": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"transaction": {
"dynamic": "false",
"properties": {
"duration": {
"properties": {
"us": {
"type": "long"
}
}
},
"id": {
"type": "keyword",
"ignore_above": 1024
},
"name": {
"type": "text",
"norms": false,
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"result": {
"type": "keyword",
"ignore_above": 1024
},
"type": {
"type": "keyword",
"ignore_above": 1024
}
}
},
"view errors": {
"type": "keyword",
"ignore_above": 1024
},
"view traces": {
"type": "keyword",
"ignore_above": 1024
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.