Skip to content

Instantly share code, notes, and snippets.

@dnafication
Forked from jpotts/jmeter-results.conf
Created November 30, 2017 06:07
Show Gist options
  • Select an option

  • Save dnafication/9469dbf05f673d6dc598b1f4016c2f2e to your computer and use it in GitHub Desktop.

Select an option

Save dnafication/9469dbf05f673d6dc598b1f4016c2f2e 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