Created
August 30, 2014 21:28
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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