$ curl -XGET http://localhost:9200/httpd.access_log-2013.11.20/_mapping
いつもの通り、見辛いのでjq 使って見やすくする
$ curl -XGET http://localhost:9200/httpd.access_log-2013.11.20/_mapping | jq .
{
"httpd.access_log-2013.11.20": {
"httpd": {
"properties": {
"vhost": {
"type": "string"
},
"user": {
"type": "string"
},
"uri": {
"fields": {
"uri_not_analyzed": {
"include_in_all": false,
"index_options": "docs",
"omit_norms": true,
"index": "not_analyzed",
"type": "string"
},
"uri": {
"type": "string"
}
},
"type": "multi_field"
},
"timestamp": {
"type": "string"
},
"ident": {
"type": "string"
},
"host": {
"type": "string"
},
"forwardedhost": {
"type": "string"
},
"forwardedfor": {
"type": "string"
},
"cookie": {
"type": "string"
},
"agent": {
"fields": {
"agent_not_analyzed": {
"include_in_all": false,
"index_options": "docs",
"omit_norms": true,
"index": "not_analyzed",
"type": "string"
},
"agent": {
"type": "string"
}
},
"type": "multi_field"
},
"_key": {
"type": "string"
},
"@timestamp": {
"format": "dateOptionalTime",
"type": "date"
},
"method": {
"type": "string"
},
"protocol": {
"type": "string"
},
"query": {
"type": "string"
},
"referer": {
"fields": {
"referer_not_analyzed": {
"include_in_all": false,
"index_options": "docs",
"omit_norms": true,
"index": "not_analyzed",
"type": "string"
},
"referer": {
"type": "string"
}
},
"type": "multi_field"
},
"req": {
"fields": {
"req_not_analyzed": {
"include_in_all": false,
"index_options": "docs",
"omit_norms": true,
"index": "not_analyzed",
"type": "string"
},
"req": {
"type": "string"
}
},
"type": "multi_field"
},
"response_time": {
"type": "string"
},
"size": {
"type": "string"
},
"status": {
"type": "string"
}
}
}
}
}