# Logstash Monitoring API

**URL:** <https://discuss.elastic.co/t/logstash-monitoring-api/185601>\
**Category:** Logstash\
**Created:** [June 13, 2019, 10:01am UTC](https://discuss.elastic.co/t/logstash-monitoring-api/185601 "2019-06-13T10:01:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [June 13, 2019, 10:01am UTC](https://discuss.elastic.co/t/logstash-monitoring-api/185601/1 "2019-06-13T10:01:26Z")

</div>

Hi

I'm using logstash monitoring api's to get to know the performance. I executed this

curl -XGET 'localhost:9600/\_node/stats/pipeline?pretty'

{  
"host" : "0.0.0.0",  
"version" : "5.6.13",  
"http\_address" : "127.0.0.1:9600",  
"id" : "30e9060b-2942-465c-823a-0af6a60549bd",  
"name" : "0.0.0.0",  
"pipeline" : {  
"events" : {  
"duration\_in\_millis" : 180,  
"in" : 27,  
"out" : 27,  
"filtered" : 27,  
"queue\_push\_duration\_in\_millis" : 23  
},  
"plugins" : {  
"inputs" : [  
{  
"id" : "207b62600220dddd2e825d5cb829815ae04a2755-1",  
"events" : {  
"out" : 27,  
"queue\_push\_duration\_in\_millis" : 23  
},  
"connections" : 2,  
"name" : "syslog",  
"messages\_received" : 27  
} ],  
"filters" : [  
{  
"id" : "207b62600220dddd2e825d5cb829815ae04a2755-6",  
"events" : {  
"duration\_in\_millis" : 5,  
"in" : 1,  
"out" : 1  
},  
"name" : "ruby"  
}  
],  
"outputs" : [

{  
"id" : "207b62600220dddd2e825d5cb829815ae04a2755-33",  
"events" : {  
"duration\_in\_millis" : 30,  
"in" : 1,  
"out" : 1  
}  
]  
},  
"reloads" : {  
"last\_error" : null,  
"successes" : 0,  
"last\_success\_timestamp" : null,  
"last\_failure\_timestamp" : null,  
"failures" : 0  
},  
"queue" : {  
"type" : "memory"  
},  
"id" : "main"  
}  
}

I need below details

1. How many events reached logstash from source??
2. How much time input plugin took to put it in filter queue?
3. How much time filter plugin took to process the event?(cumulative time)
4. How much time output plugin took to push the records to elasticsearch??

So I assumed that queue\_push\_duration\_in\_millis in input plugin tells how much time it took and duration\_in\_millis in filter and output plugin, tell me the same time taken stats in each layer

Is that correct?? Whats that events stats on the top(below pipeline)?? Does it have any relation with filter plugin?? Also to get cumulative time taken for all 27 events in filter plugin, Should I sum each filter plugin time taken and get the final value?

---

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [June 17, 2019, 10:35am UTC](https://discuss.elastic.co/t/logstash-monitoring-api/185601/2 "2019-06-17T10:35:12Z")

</div>

Can someone please reply??

---

<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:** [June 17, 2019, 10:49am UTC](https://discuss.elastic.co/t/logstash-monitoring-api/185601/3 "2019-06-17T10:49:27Z")

</div>

You asked this on a Friday, before a weekend, you will need to have a bit of patience please 🙂

---

<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:** [July 15, 2019, 10:54am UTC](https://discuss.elastic.co/t/logstash-monitoring-api/185601/4 "2019-07-15T10:54:36Z")

</div>

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