Skip to content

Instantly share code, notes, and snippets.

@WPsites WPsites/gist:6100723
Created Jul 28, 2013

Embed
What would you like to do?
Elasticsearch index mapping confirmation for debug..
curl -XGET 'http://192.168.11.3:9200/logstash-2013.07.29/_mapping?pretty=true'
{
"logstash-2013.07.29" : {
"syslog" : {
"_all" : {
"enabled" : false
},
"properties" : {
"@fields" : {
"dynamic" : "true",
"properties" : {
"received_at" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"received_from" : {
"type" : "string"
},
"syslog_facility" : {
"type" : "string"
},
"syslog_facility_code" : {
"type" : "long"
},
"syslog_pid" : {
"type" : "string"
},
"syslog_pri" : {
"type" : "string"
},
"syslog_program" : {
"type" : "string"
},
"syslog_severity" : {
"type" : "string"
},
"syslog_severity_code" : {
"type" : "long"
}
}
},
"@message" : {
"type" : "string"
},
"@source" : {
"type" : "string",
"index" : "no"
},
"@source_host" : {
"type" : "string"
},
"@source_path" : {
"type" : "string"
},
"@tags" : {
"type" : "string"
},
"@timestamp" : {
"type" : "date",
"index" : "analyzed",
"format" : "yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ssZZ"
},
"@type" : {
"type" : "string"
},
"bytes" : {
"type" : "integer",
"index" : "analyzed"
},
"clientip" : {
"type" : "ip",
"index" : "analyzed"
},
"host" : {
"type" : "string"
},
"httpversion" : {
"type" : "float"
},
"method" : {
"type" : "string"
},
"path" : {
"type" : "string"
},
"referrer" : {
"type" : "string"
},
"response" : {
"type" : "integer",
"index" : "analyzed"
},
"syslog_hostname" : {
"type" : "string"
},
"syslog_pri" : {
"type" : "integer",
"index" : "analyzed"
},
"syslog_program" : {
"type" : "string"
},
"syslog_timestamp" : {
"type" : "string",
"index" : "no"
},
"time" : {
"type" : "string",
"index" : "no"
},
"upstr_ip" : {
"type" : "ip",
"index" : "analyzed"
},
"upstr_port" : {
"type" : "integer",
"index" : "analyzed"
},
"upstrcode" : {
"type" : "integer",
"index" : "analyzed"
},
"upstrtime" : {
"type" : "float",
"index" : "analyzed"
},
"useragent" : {
"type" : "string"
}
}
},
"_default_" : {
"_all" : {
"enabled" : false
},
"properties" : {
"@message" : {
"type" : "string"
},
"@source" : {
"type" : "string",
"index" : "no"
},
"@source_host" : {
"type" : "string"
},
"@source_path" : {
"type" : "string"
},
"@tags" : {
"type" : "string"
},
"@timestamp" : {
"type" : "date",
"index" : "analyzed",
"format" : "yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ssZZ"
},
"@type" : {
"type" : "string"
},
"bytes" : {
"type" : "integer",
"index" : "analyzed"
},
"clientip" : {
"type" : "ip",
"index" : "analyzed"
},
"host" : {
"type" : "string"
},
"httpversion" : {
"type" : "float"
},
"method" : {
"type" : "string"
},
"path" : {
"type" : "string"
},
"referrer" : {
"type" : "string"
},
"response" : {
"type" : "integer",
"index" : "analyzed"
},
"syslog_hostname" : {
"type" : "string"
},
"syslog_pri" : {
"type" : "integer",
"index" : "analyzed"
},
"syslog_program" : {
"type" : "string"
},
"syslog_timestamp" : {
"type" : "string",
"index" : "no"
},
"time" : {
"type" : "string",
"index" : "no"
},
"upstr_ip" : {
"type" : "ip",
"index" : "analyzed"
},
"upstr_port" : {
"type" : "integer",
"index" : "analyzed"
},
"upstrcode" : {
"type" : "integer",
"index" : "analyzed"
},
"upstrtime" : {
"type" : "float",
"index" : "analyzed"
},
"useragent" : {
"type" : "string"
}
}
}
}
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.