Skip to content

Instantly share code, notes, and snippets.

@codyaray
Created March 1, 2017 19:10
Show Gist options
  • Save codyaray/ed71b510df0c11da94955d165e2e59a5 to your computer and use it in GitHub Desktop.
Save codyaray/ed71b510df0c11da94955d165e2e59a5 to your computer and use it in GitHub Desktop.
straight from _mappings with updated @timestamp formats (used to be long)
{
"test": {
"properties": {
"index": {
"type": "string"
},
"host": {
"type": "string"
},
"alert_level_name": {
"type": "string"
},
"count": {
"type": "long"
},
"alert_level": {
"type": "long"
},
"doc_type": {
"type": "string"
},
"type": {
"type": "string"
},
"message": {
"type": "string"
},
"@timestamp": {
}
},
"alerts2": {
"properties": {
"index": {
"type": "string"
},
"host": {
"type": "string"
},
"alert_level_name": {
"type": "string"
},
"count": {
"type": "long"
},
"alert_level": {
"type": "long"
},
"doc_type": {
"type": "string"
},
"type": {
"type": "string"
},
"message": {
"type": "string"
},
"@timestamp": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
},
"time": {
"type": "long"
},
"rollup_msg": {
"type": "string"
},
"priority": {
"type": "long"
},
"acknowledged": {
"type": "boolean"
},
"name": {
"type": "string"
},
"service": {
"type": "string"
},
"msg_id": {
"type": "string"
},
"alert_id": {
"type": "string"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment