# API: Get messages per second from input and output

**URL:** <https://discuss.elastic.co/t/api-get-messages-per-second-from-input-and-output/79878>\
**Category:** Logstash\
**Created:** [March 24, 2017, 11:13am UTC](https://discuss.elastic.co/t/api-get-messages-per-second-from-input-and-output/79878 "2017-03-24T11:13:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexW](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@AlexW](https://discuss.elastic.co/u/AlexW)\
**Post date:** [March 24, 2017, 11:13am UTC](https://discuss.elastic.co/t/api-get-messages-per-second-from-input-and-output/79878/1 "2017-03-24T11:13:55Z")

</div>

Hi!  
Is it possible to get the messages digested by Logstash via an API call? I checked the documentation and did not find anything about that. We would like to add that to our monitoring and graph it.

Thanks for your help!

Take care,  
Alex

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 24, 2017, 1:10pm UTC](https://discuss.elastic.co/t/api-get-messages-per-second-from-input-and-output/79878/2 "2017-03-24T13:10:21Z")

</div>

You're probably looking for the pipeline stats part of the monitoring API: [https://www.elastic.co/guide/en/logstash/current/node-stats-api.html#pipeline-stats](https://www.elastic.co/guide/en/logstash/current/node-stats-api.html#pipeline-stats)

---

<div class="post-metadata">

**Author:** ![AlexW](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@AlexW](https://discuss.elastic.co/u/AlexW)\
**Post date:** [March 24, 2017, 2:46pm UTC](https://discuss.elastic.co/t/api-get-messages-per-second-from-input-and-output/79878/3 "2017-03-24T14:46:25Z")

</div>

Hi!  
We are using these metrics at the moment and we are calculating the messages per second just by...well...measuring every second and calculate the difference of the two values. I had hoped that there is an API call to get that number directly.

---

<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:** [April 21, 2017, 2:46pm UTC](https://discuss.elastic.co/t/api-get-messages-per-second-from-input-and-output/79878/4 "2017-04-21T14:46:34Z")

</div>

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