Skip to content

Instantly share code, notes, and snippets.

@ctomoiaga
Created October 26, 2013 06:24
Show Gist options
  • Save ctomoiaga/7165899 to your computer and use it in GitHub Desktop.
Save ctomoiaga/7165899 to your computer and use it in GitHub Desktop.
Elasticsearch
{
"order": 0,
"template": "logstash-*",
"settings": {
"index.analysis.analyzer.uax_url_email.filter.2": "stop",
"index.analysis.analyzer.uax_url_email.filter.1": "lowercase",
"index.analysis.analyzer.uax_url_email.filter.0": "standard",
"index.number_of_replicas": "1",
"index.number_of_shards": "5",
"index.analysis.analyzer.uax_url_email.tokenizer": "uax_url_email"
},
"mappings": {
"logs": {
"properties": {
"mailid": {
"type": "string"
},
"message": {
"type": "string"
},
"tags": {
"type": "string"
},
"@timestamp": {
"format": "dateOptionalTime",
"type": "date"
},
"comtype": {
"index": "not_analyzed",
"type": "string"
},
"srvname": {
"index": "not_analyzed",
"type": "string"
},
"EventReceivedTime": {
"format": "yyyy-MM-dd HH:mm:ss",
"type": "date"
}
},
"_all": {
"analyzer": "uax_url_email",
"type": "string"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment