# Kibana Timelion to Represent API Response Times

**URL:** <https://discuss.elastic.co/t/kibana-timelion-to-represent-api-response-times/122278>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [March 2, 2018, 2:49pm UTC](https://discuss.elastic.co/t/kibana-timelion-to-represent-api-response-times/122278 "2018-03-02T14:49:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suman\_Reddy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suman_reddy1/32/27303_2.png) [@Suman\_Reddy1](https://discuss.elastic.co/u/Suman_Reddy1)\
**Post date:** [March 2, 2018, 2:49pm UTC](https://discuss.elastic.co/t/kibana-timelion-to-represent-api-response-times/122278/1 "2018-03-02T14:49:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [March 3, 2018, 6:44am UTC](https://discuss.elastic.co/t/kibana-timelion-to-represent-api-response-times/122278/2 "2018-03-03T06:44:15Z")

</div>

You can only see an aggregation of the data, this is how ES works. My coworker CJ went into depth explaining it here: [Timelion Time-Series data based on field value](https://discuss.elastic.co/t/timelion-time-series-data-based-on-field-value/93982/2?u=marius_dragomir) and he also linked to reading materials that can help you make you decision on what aggregation to use.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 31, 2018, 6:44am UTC](https://discuss.elastic.co/t/kibana-timelion-to-represent-api-response-times/122278/3 "2018-03-31T06:44:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
