Team,
I am trying to represent my API response times using Timelion. When we are sending data feed to Elasticsearcb we add responsetime to the message.
Message looks something like below.
{
"_index": "logstash-2018.02.24",
"_type": "logs",
"_id": "2QYmxmEBBueTkVAkrl2z",
"_version": 1,
"_score": null,
"_source": {
"APINAME": "CARDS CREATE\r\n\r",
"responseTime": 400,
"logmessage": "className:200 - This is debug message payload-Response Time:400",
"message": "14-07-02 20:52:39 [12345] [DEBUG] className:200 - This is debug message payload-Response Time:400 API Name-CARDS CREATE\r\n\r",
"uuid": "12345",
"tags": [
"multiline"
],
"head": "className:200 - This is debug message payload-Response Time",
"path": "C:\\logstash-5.6.7\\bin\\test.log",
"Loglevel": "DEBUG",
"@timestamp": "2018-02-24T04:51:18.056Z",
"payload": "14-07-02 20:52:39",
"@version": "1",
"host": "ManuS"
},
"fields": {
"@timestamp": [
"2018-02-24T04:51:18.056Z"
]
},
"sort": [
1519447878056
]
}
Could you please let me know, how can I represent my response times for each and every api hit.
This is something I am doing.
.es(metric='avg:responseTime')
This is kind of gives only AVERAGE response times only I think.