\\
0> curl -XGET http://10.19.0.64:9200/logstash-php-2015.11.10/weibo_img_uniupload_app/_mapping?pretty
{
"logstash-php-2015.11.10" : {
"mappings" : {
"weibo_img_uniupload_app" : {
"dynamic_templates" : [ {
"message_field" : {
"mapping" : {
"index" : "analyzed",
"omit_norms" : true,
"store" : false,
"type" : "string"
},
"match" : "message",
"match_mapping_type" : "string"
}
}, {
"string_fields" : {
"mapping" : {
"ignore_above" : 256,
"index" : "not_analyzed",
"store" : false,
"type" : "string",
"doc_values" : true
},
"match" : "*",
"match_mapping_type" : "string"
}
}, {
"long_fields" : {
"mapping" : {
"type" : "long",
"doc_values" : true
},
"match" : "*",
"match_mapping_type" : "long"
}
}, {
"integer_fields" : {
"mapping" : {
"type" : "integer",
"doc_values" : true
},
"match" : "*",
"match_mapping_type" : "integer"
}
}, {
"double_fields" : {
"mapping" : {
"type" : "double",
"doc_values" : true
},
"match" : "*",
"match_mapping_type" : "double"
}
}, {
"float_fields" : {
"mapping" : {
"type" : "float",
"doc_values" : true
},
"match" : "*",
"match_mapping_type" : "float"
}
} ],
"_all" : {
"enabled" : true
},
"properties" : {
"@timestamp" : {
"type" : "date",
"doc_values" : true,
"format" : "dateOptionalTime"
},
"action" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"clientip" : {
"type" : "ip",
"doc_values" : true
},
"details" : {
"type" : "object",
"enabled" : false
},
"elaspe" : {
"type" : "double",
"doc_values" : true
},
"end_time" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true
},
"err_msg" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"file_size" : {
"type" : "long",
"doc_values" : true
},
"func" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"geoip" : {
"dynamic" : "true",
"properties" : {
"location" : {
"type" : "geo_point"
}
}
},
"host" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"idc" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"info" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"jsoncontent" : {
"dynamic" : "true",
"properties" : {
"content" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 8092
}
}
},
"jsonlog" : {
"type" : "string",
"index" : "no"
},
"level" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"md5" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"message" : {
"type" : "string",
"norms" : {
"enabled" : false
}
},
"pic_length" : {
"type" : "long",
"doc_values" : true
},
"project" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"receive_elaspe" : {
"type" : "double",
"doc_values" : true
},
"request_header" : {
"type" : "object",
"enabled" : false
},
"response_header" : {
"type" : "object",
"enabled" : false
},
"rtt" : {
"type" : "double",
"doc_values" : true
},
"slice_id" : {
"type" : "long",
"doc_values" : true
},
"start_time" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true
},
"status" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"this_slice_size" : {
"type" : "long",
"doc_values" : true
},
"time" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"token" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"uid" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true
},
"usid" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"video_buffer_duration" : {
"type" : "long",
"doc_values" : true
},
"video_duration" : {
"type" : "double",
"doc_values" : true
},
"video_request_header" : {
"type" : "object",
"enabled" : false
},
"video_response_header" : {
"type" : "object",
"enabled" : false
},
"video_time_duration" : {
"type" : "nested",
"properties" : {
"duration" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
},
"type" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true,
"ignore_above" : 256
}
}
},
"wm" : {
"type" : "string",
"index" : "not_analyzed",
"doc_values" : true
}
}
}
}
}
}
原文:http://my.oschina.net/MrYx3en/blog/531031