Skip to content

Instantly share code, notes, and snippets.

@yoshi0309
Last active August 29, 2015 14:07
Show Gist options
  • Save yoshi0309/dc806f01a03e34cc6fb6 to your computer and use it in GitHub Desktop.
Save yoshi0309/dc806f01a03e34cc6fb6 to your computer and use it in GitHub Desktop.
{
"template" : "logstash-*",
"mappings": {
"solr_log": {
"properties": {
"@log_name": {
"type": "string",
"index" : "not_analyzed"
},
"@timestamp": {
"type": "date",
"format": "dateOptionalTime"
},
"Qtime": {
"type": "integer"
},
"_": {
"type": "string",
"index" : "not_analyzed"
},
"class": {
"type": "string",
"index" : "not_analyzed"
},
"core": {
"type": "string",
"index" : "not_analyzed"
},
"facet": {
"type": "string",
"index": "not_analyzed"
},
"facet.field": {
"type": "string",
"index": "not_analyzed"
},
"facet.query": {
"type": "string",
"index": "not_analyzed"
},
"hits": {
"type": "integer",
"index": "not_analyzed"
},
"hyp": {
"type": "string",
"index": "not_analyzed"
},
"indent": {
"type": "string",
"index": "not_analyzed"
},
"loglevel": {
"type": "string",
"index": "not_analyzed"
},
"params": {
"type": "string",
"index": "not_analyzed"
},
"path": {
"type": "string",
"index": "not_analyzed"
},
"q": {
"type": "string",
"index": "not_analyzed"
},
"status": {
"type": "string",
"index": "not_analyzed"
},
"webapp": {
"type": "string",
"index": "not_analyzed"
},
"wt": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
@yoshi0309
Copy link
Author

curl -XPUT localhost:9200/_template/logstash -d ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment