Skip to content

Instantly share code, notes, and snippets.

@liuyu
Last active October 12, 2015 15:42
Show Gist options
  • Save liuyu/bc4cfaf667c5168a64d0 to your computer and use it in GitHub Desktop.
Save liuyu/bc4cfaf667c5168a64d0 to your computer and use it in GitHub Desktop.
heka.json
{
"heka" : {
"template" : "heka",
"settings" : {
"index.number_of_shards" : 5,
"number_of_replicas" : 1,
"index" : {
"store" : {
"compress" : {
"stored" : true,
"tv": true
}
}
}
},
"mappings" : {
"_default_" : {
"properties" : {
"dynamic" : "true",
},
},
"loadbalancer" : {
"_source" : {
"compress" : true,
},
"_ttl" : {
"enabled" : true,
"default" : "10d"
},
"_all" : {
"enabled" : false
},
"properties" : {
"Hostname" : {
"type" : "string"
},
"Timestamp" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"body_bytes_sent" : {
"type" : "long",
"index" : "not_analyzed"
},
"host" : {
"type" : "string",
"index" : "not_analyzed"
},
"http_referer" : {
"type" : "string",
"index" : "not_analyzed"
},
"http_x_forwarded_for" : {
"type" : "string",
"index" : "not_analyzed"
},
"remote_addr" : {
"type" : "string",
"index" : "not_analyzed"
},
"remote_user" : {
"type" : "string",
"index" : "not_analyzed"
},
"request" : {
"type" : "string",
"index" : "not_analyzed"
},
"request_times" : {
"type" : "string",
"index" : "not_analyzed"
},
"status" : {
"type" : "long",
"index" : "not_analyzed"
},
"user_agent_browser" : {
"type" : "string",
"index" : "not_analyzed"
},
"user_agent_os" : {
"type" : "string",
"index" : "not_analyzed"
},
"user_agent_version" : {
"type" : "long",
"index" : "not_analyzed"
}
}
},
"@source" : {
"type" : "string",
"index" : "not_analyzed"
},
"@timestamp" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"@type" : {
"type" : "string",
"index" : "not_analyzed",
"store" : "no"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment