# How to find the number of times API is called by any user

**URL:** <https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532>\
**Category:** Kibana\
**Created:** [November 21, 2017, 8:39am UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532 "2017-11-21T08:39:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sartaj\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Sartaj\_Ahmed](https://discuss.elastic.co/u/Sartaj_Ahmed)\
**Post date:** [November 21, 2017, 8:39am UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532/1 "2017-11-21T08:39:22Z")

</div>

Hi,  
I am new to Kibana and I am working on Kibana 5.1.1 . How can the number of times an API is being invoked by any user?

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [November 21, 2017, 6:11pm UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532/2 "2017-11-21T18:11:28Z")

</div>

Are there API request logs in your data?

---

<div class="post-metadata">

**Author:** ![Sartaj\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Sartaj\_Ahmed](https://discuss.elastic.co/u/Sartaj_Ahmed)\
**Post date:** [November 22, 2017, 7:21am UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532/3 "2017-11-22T07:21:42Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/4/c/4cae4420612f7728bad3a8b613faf61bfd30ff25.png)

---

<div class="post-metadata">

**Author:** ![Sartaj\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Sartaj\_Ahmed](https://discuss.elastic.co/u/Sartaj_Ahmed)\
**Post date:** [November 22, 2017, 7:22am UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532/4 "2017-11-22T07:22:53Z")

</div>

Hi tsullivan,

Thanks for the input. Please find attached screenshot of the kibana report

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 22, 2017, 7:52am UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532/5 "2017-11-22T07:52:57Z")

</div>

Which field is the URL and which is the user ID?

---

<div class="post-metadata">

**Author:** ![Sartaj\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Sartaj\_Ahmed](https://discuss.elastic.co/u/Sartaj_Ahmed)\
**Post date:** [November 22, 2017, 1:00pm UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532/6 "2017-11-22T13:00:54Z")

</div>

There is a log group as mentioned in the screenshot but we are not sure which API it invokes. Can I find out how many times this log group was called? Here I dont have user data

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 22, 2017, 7:08pm UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532/7 "2017-11-22T19:08:36Z")

</div>

So `@log_group` is the URL?  
Then just build a bar/pie chart similar to how this is described [https://www.elastic.co/guide/en/kibana/current/tutorial-visualizing.html](https://www.elastic.co/guide/en/kibana/current/tutorial-visualizing.html)

Or build a table with a count. Lots of options!

---

<div class="post-metadata">

**Author:** ![Sartaj\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Sartaj\_Ahmed](https://discuss.elastic.co/u/Sartaj_Ahmed)\
**Post date:** [November 24, 2017, 7:06am UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532/8 "2017-11-24T07:06:25Z")

</div>

Thanks for the inputs warkolm,

@log\_group = /aws/lambda/LaaSLicenseService-CommonTestLicense-Hearbeat

Just to give you an overview. The "log group" contains 2 different types of information the user information is "CommonTestLicense" and the lambda log which is created "Hearbeat" (upon invoking some API which I don't know about). Here there are 10 users can be  
(for e.g., CommonTestLicense, CommonDevLicense,CommonDevCustomer etc., ) and there are 15 types of lambda log (for e.g., Heartbeat, Groupauth,healthcheck etc.,) I wanted to create a pie-donut chart where one circle gives information about the top users and second circle gives information about the top lambda log they created.

My challenge is all information is present in one value @log\_group , Im not sure how to split this up ? Can you please help

---

<div class="post-metadata">

**Author:** ![Sartaj\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Sartaj\_Ahmed](https://discuss.elastic.co/u/Sartaj_Ahmed)\
**Post date:** [December 18, 2017, 7:32am UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532/9 "2017-12-18T07:32:16Z")

</div>

Any inputs , Anyone ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 18, 2017, 7:46am UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532/10 "2017-12-18T07:46:14Z")

</div>

Try using a CSV filter on that field, just change the separator to `/`.

---

<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:** [January 15, 2018, 7:46am UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-times-api-is-called-by-any-user/108532/11 "2018-01-15T07:46:29Z")

</div>

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