Skip to content

Instantly share code, notes, and snippets.

@ephemeralsnow
Created August 7, 2014 08:33
Show Gist options
  • Save ephemeralsnow/8e3a653e7e4bafa5f44c to your computer and use it in GitHub Desktop.
Save ephemeralsnow/8e3a653e7e4bafa5f44c to your computer and use it in GitHub Desktop.
logstash-template.json
curl -XPUT 'http://127.0.0.1:9200/_template/logstash' -v -d '{
"template": "logstash-*",
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"_default_": {
"_source": { "compress": true },
"_all": { "enabled": false },
"properties": {
"login_id": { "type": "string", "index": "not_analyzed" },
"method": { "type": "string", "index": "not_analyzed" },
"tag": { "type": "string", "index": "not_analyzed" },
"url": { "type": "string", "index": "not_analyzed" },
"Name": { "type": "string", "index": "not_analyzed" },
"DurationUnit": { "type": "string", "index": "not_analyzed" },
"RateUnit": { "type": "string", "index": "not_analyzed" }
}
},
"brahma_tomcat_jmx": {
"_source": { "enabled": false },
"_all": { "enabled": false },
"properties": {
"requestCount": { "type": "long", "index": "no", "fielddata": { "format": "doc_values" } },
"bytesReceived": { "type": "long", "index": "no", "fielddata": { "format": "doc_values" } },
"bytesSent": { "type": "long", "index": "no", "fielddata": { "format": "doc_values" } },
"errorCount": { "type": "long", "index": "no", "fielddata": { "format": "doc_values" } },
"init": { "type": "long", "index": "no", "fielddata": { "format": "doc_values" } },
"committed": { "type": "long", "index": "no", "fielddata": { "format": "doc_values" } },
"max": { "type": "long", "index": "no", "fielddata": { "format": "doc_values" } },
"used": { "type": "long", "index": "no", "fielddata": { "format": "doc_values" } }
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment