Skip to content

Instantly share code, notes, and snippets.

@VAdamec
Created January 21, 2014 21:33
Show Gist options
  • Save VAdamec/8548823 to your computer and use it in GitHub Desktop.
Save VAdamec/8548823 to your computer and use it in GitHub Desktop.
Set @fields to not analyzed (to get full alert description not exploded parts)
curl -XPUT http://localhost:9200/_template/logstash_ossec -d '{
"template" : "*ossec*",
"settings": {
"number_of_shards": 12,
"number_of_replicas": 1
},
"mappings": {
"ossec": {
"_all": {
"enabled": false
},
"_source": {
"compressed": true
},
"properties": {
"DESCRIPTION": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment