Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"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

This comment has been minimized.

Copy link
Owner Author

@yoshi0309 yoshi0309 commented Oct 8, 2014

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
You can’t perform that action at this time.