Skip to content

Instantly share code, notes, and snippets.

@jpotts
Created August 30, 2014 21:28
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save jpotts/4ce6862c0b558ca61a99 to your computer and use it in GitHub Desktop.
Save jpotts/4ce6862c0b558ca61a99 to your computer and use it in GitHub Desktop.
Logstash config that can be used to read in JMeter test results and store them in Elasticsearch
input {
file {
path => [ "/Users/jpotts/Documents/code/es-test/results.csv"]
}
}
filter {
if ([message] =~ "responseCode") {
drop { }
} else {
csv {
columns => ["time", "elapsed", "label", "responseCode", "threadName",
"success", "bytes", "grpThreads", "allThreads", "Latency",
"SampleCount", "ErrorCount", "Hostname"]
}
}
}
output {
elasticsearch_http {
host => "127.0.0.1"
index => "logstash-jmeter-results-%{+YYYY.MM.dd}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment