Skip to content

Instantly share code, notes, and snippets.

@duketon
Last active January 10, 2019 16:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duketon/d2b397c5c7ef8a1ad00237ec914651cc to your computer and use it in GitHub Desktop.
Save duketon/d2b397c5c7ef8a1ad00237ec914651cc to your computer and use it in GitHub Desktop.
#!/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