# Parsing API call

**URL:** <https://discuss.elastic.co/t/parsing-api-call/85701>\
**Category:** Kibana\
**Created:** [May 15, 2017, 4:59am UTC](https://discuss.elastic.co/t/parsing-api-call/85701 "2017-05-15T04:59:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arussel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arussel/32/13281_2.png) [@arussel](https://discuss.elastic.co/u/arussel)\
**Post date:** [May 15, 2017, 4:59am UTC](https://discuss.elastic.co/t/parsing-api-call/85701/1 "2017-05-15T04:59:00Z")

</div>

Hi,

I'm sending nginx logs to kibana and end up with fields:

- http verb: GET, POST, DELETE ...
- duration: an int in ms
- the path from the call: /a/b/c

I want to group the call so know how each API takes inside the system, so do a sum of duration per (http verb / path).  
The problem is that the path is not just a string, we're using REST API the path should be interpreted as regex, ie:

- GET /a/customers/1234 should be grouped in the GET /a/customers/${customerId} call
- DELETE /a/customers/1234 should be grouped in the DELETE /a/customers/${customerId} call  
but
- GET /a/customers/totallength should be grouped in the GET /a/customers/totallength call

The other problems is that we have hundreds of API call and this would be extremely hard to maintains this manually. Is there a way to create a kibana graph using a config file ? we're using playframework so have a route files with all the info we need, ideally we would be able to write a script that create the kibana graph file and we could send it to kibana via an API call to create/update the graph (we're using AWS ES).

Alex

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 15, 2017, 5:11am UTC](https://discuss.elastic.co/t/parsing-api-call/85701/2 "2017-05-15T05:11:55Z")

</div>

It may be easier and more efficient to extract this at ingestion time.

---

<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:** [June 12, 2017, 5:13am UTC](https://discuss.elastic.co/t/parsing-api-call/85701/3 "2017-06-12T05:13:13Z")

</div>

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