Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
curl -XPUT http://localhost:9200/_template/gatling_logs -d '
{
"template": "gatling-*",
"settings": {
"number_of_shards": 1,
"number_of_replicas": 1
},
"mappings": {
"gatling": {
"properties": {
"@timestamp" : {
"type" : "date",
"format" : "strict_date_optional_time||epoch_millis"
},
"@version" : {
"type" : "string"
},
"group" : {
"type" : "string",
"index": "not_analyzed"
},
"message" : {
"type" : "string",
"index": "not_analyzed"
},
"name" : {
"type" : "string",
"index": "not_analyzed"
},
"requestEnd" : {
"type" : "long"
},
"requestStart" : {
"type" : "long"
},
"responseDuration" : {
"type" : "long"
},
"responseEnd" : {
"type" : "long"
},
"responseStart" : {
"type" : "long"
},
"scenario_name" : {
"type" : "string",
"index": "not_analyzed"
},
"status" : {
"type" : "boolean"
}
}
}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment