Forked from ephemeralsnow/gist:8e3a653e7e4bafa5f44c
Last active
August 29, 2015 14:15
-
-
Save d10v/730c1385066a63c17b8c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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