Skip to content

Instantly share code, notes, and snippets.

@jpotts
Created August 30, 2014 21:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jpotts/0d3a982158a389300978 to your computer and use it in GitHub Desktop.
Save jpotts/0d3a982158a389300978 to your computer and use it in GitHub Desktop.
Elasticsearch mapping that can be used to index JMeter test results
{
"template": "logstash-jmeter-results-*",
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"index.refresh_interval": "5s"
},
"mappings": {
"logs": {
"properties": {
"time": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss.SSS"
},
"elapsed": {
"type": "long"
},
"label": {
"type": "string"
},
"responseCode": {
"type": "integer"
},
"threadName": {
"type": "string"
},
"success": {
"type": "boolean"
},
"bytes": {
"type": "long"
},
"grpThreads": {
"type": "long"
},
"allThreads": {
"type": "long"
},
"Latency": {
"type": "long"
},
"SampleCount": {
"type": "long"
},
"ErrorCount": {
"type": "long"
},
"Hostname": {
"type": "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment