Skip to content

Instantly share code, notes, and snippets.

@KushalP
Created November 21, 2013 15:00
Show Gist options
  • Save KushalP/7583080 to your computer and use it in GitHub Desktop.
Save KushalP/7583080 to your computer and use it in GitHub Desktop.
{
"template": "logs-*",
"order": 0,
"settings": {
"index.query.default_field": "Payload",
"index.store.compress.stored": "true",
"index.number_of_shards": "5",
"index.cache.field.type": "soft",
"index.refresh_interval": "5s"
},
"mappings": {
"_default_": {
"_all": { "enabled": false },
"properties": {
"BytesSent": { "index": "not_analyzed", "type": "long" },
"Hostname": { "index": "not_analyzed", "type": "string" },
"Logger": { "index": "not_analyzed", "type": "string" },
"Payload": { "index": "analyzed", "type": "string" },
"RequestTime": { "index": "not_analyzed", "type": "float" },
"Status": { "index": "not_analyzed", "type": "long" },
"Tags": { "index": "not_analyzed", "type": "string" },
"Timestamp": { "index": "not_analyzed", "type": "date" },
"Type": { "index": "not_analyzed", "type": "string" },
"Uuid": { "index": "not_analyzed", "type": "string" }
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment