Hi,
I'm trying to ship LocustIO results with logstash which look like the following:
10:09:31 Name # reqs # fails Avg Min Max | Median req/s
10:09:31 --------------------------------------------------------------------------------------------------------------------------------------------
10:09:31 GET / 683 0(0.00%) 222 212 392 | 220 9.10
10:09:31 POST /modules 5 0(0.00%) 555 539 567 | 550 0.00
10:09:31 GET /ports 62 0(0.00%) 548 536 572 | 550 0.10
10:09:31 GET /ports/ 250 0(0.00%) 215 212 283 | 210 4.60
10:09:31 --------------------------------------------------------------------------------------------------------------------------------------------
10:09:31 Total 1000 0(0.00%) 13.80
10:09:33 Name # reqs 50% 66% 75% 80% 90% 95% 98% 99% 100%
10:09:33 --------------------------------------------------------------------------------------------------------------------------------------------
10:09:33 GET / 683 220 220 220 220 220 330 330 340 392
10:09:33 POST /modules 5 550 570 570 570 570 570 570 570 567
10:09:33 GET /ports 62 550 550 560 560 560 560 570 570 572
10:09:33 GET /ports/ 250 210 220 220 220 220 220 220 230 283
I'm trying to find the best way to do this. I have the following configs setup for logstash.
input {
file {
path => [ "C:\Program Files (x86)\Jenkins\jobs\Locust2\builds*\log"]
start_position => "beginning"
}
}
filter {
csv { columns => ["Name", "# reqs", "# fails", "Avg", "Min", "Max", "Median", "req/s"] }
}
output {
stdout { }
elasticsearch {
template => "C:\Program Files\Logstash\logstash-2.3.4\bin\locust-mapping.json"
template_name => "locust"
template_overwrite => "false"
hosts => ["localhost:9200"]
user => "admin"
password => "password"
index => "locust-%{+YYYY.MM.dd}"
}
}
And the following mapping:
{
"mappings": {
"properties": {
"Name": {
"type": "long"
},
"# reqs": {
"type": "integer"
},
"# fails": {
"type": "integer"
},
"Avg": {
"type": "integer"
},
"Min": {
"type": "integer"
},
"Max": {
"type": "integer"
},
"Median": {
"type": "integer"
},
"req/s": {
"type": "integer"
}
}
}
},
"settings": {
"index.refresh_interval": "5s"
},
"template": "locust-*"
Please let me know any suggestions you may have.