Skip to content

Instantly share code, notes, and snippets.

@chenryn
Last active August 29, 2015 14:13
Show Gist options
  • Save chenryn/48040a672739ced6c1c8 to your computer and use it in GitHub Desktop.
Save chenryn/48040a672739ced6c1c8 to your computer and use it in GitHub Desktop.
{
"order": 1,
"template": "heka",
"settings": {
"index.number_of_shards": 5,
"number_of_replicas": 1,
"index.refresh_interval": "10s"
},
"mappings": {
"loadbalancer": {
"properties": {
"@timestamp": {
"index": "not_analyzed",
"format": "dateOptionalTime",
"doc_values": true,
"type": "date"
},
"@type": {
"index": "not_analyzed",
"type": "string"
},
"@source": {
"index": "not_analyzed",
"type": "string"
},
"Hostname": {
"type": "string"
},
"body_bytes_sent": {
"type": "long"
},
"host": {
"index": "not_analyzed",
"type": "string"
},
"http_referer": {
"index": "not_analyzed",
"type": "string"
},
"http_x_forwarded_for": {
"index": "not_analyzed",
"type": "string"
},
"remote_addr": {
"index": "not_analyzed",
"type": "string"
},
"remote_user": {
"index": "not_analyzed",
"type": "string"
},
"request": {
"index": "not_analyzed",
"type": "string"
},
"request_times": {
"type": "long"
},
"status": {
"type": "long"
},
"user_agent_browser": {
"index": "not_analyzed",
"type": "string"
},
"user_agent_os": {
"index": "not_analyzed",
"type": "string"
},
"user_agent_version": {
"index": "not_analyzed",
"type": "string"
},
"@version": {
"index": "not_analyzed",
"type": "string"
}
},
"_all": {
"enabled": false
},
"_source": {
"compress": true
},
"_ttl": {
"enabled": true,
"default": "10d"
}
}
},
"aliases": {}
}
{
"order" : 2,
"template" : "heka",
"settings" : {
"index.number_of_shards": 5,
"number_of_replicas": 1,
"index.refresh_interval" : "10s"
},
"mappings" : {
"_default_" : {
"dynamic_templates" : [ {
"string_fields" : {
"mapping" : {
"index" : "analyzed",
"omit_norms" : true,
"type" : "string",
"fields" : {
"raw" : {
"index" : "not_analyzed",
"ignore_above" : 256,
"doc_values" : true,
"type" : "string"
}
}
},
"match" : "*",
"match_mapping_type" : "string"
}
} ],
"properties" : {
"@timestamp" : {
"index" : "not_analyzed",
"format" : "dateOptionalTime",
"doc_values" : true,
"type" : "date"
},
"geoip" : {
"dynamic" : true,
"path" : "full",
"properties" : {
"location" : {
"type" : "geo_point"
}
},
"type" : "object"
},
"@version" : {
"index" : "not_analyzed",
"type" : "string"
}
},
"_all" : {
"enabled" : true
}
}
},
"aliases" : { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment