# Node stats api result after dropping the logs

**URL:** <https://discuss.elastic.co/t/node-stats-api-result-after-dropping-the-logs/115247>\
**Category:** Logstash\
**Created:** [January 12, 2018, 9:14am UTC](https://discuss.elastic.co/t/node-stats-api-result-after-dropping-the-logs/115247 "2018-01-12T09:14:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwesinhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shwesinhan/32/78663_2.png) [@shwesinhan](https://discuss.elastic.co/u/shwesinhan)\
**Post date:** [January 12, 2018, 9:14am UTC](https://discuss.elastic.co/t/node-stats-api-result-after-dropping-the-logs/115247/1 "2018-01-12T09:14:19Z")

</div>

hi all

may i ask one thing.

i use `node stats api` to check event counts and duration time for logstash pipeline performance.

pipeline config eg is:

> filter {  
> if "Exception" in [message] {   
> grok {  
> # exceptions   
> match =\> { "message" =\> ["^(?\<log\_timestamp\>\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{1,3})._?(?\d+)._?%{WORD:log\_level}"]}  
> add\_field =\> { "api\_code" =\> "blablabla" }  
> add\_field =\> { "log\_type" =\> "SYSTEM\_ERROR" }   
> }  
> }  
> else {  
> drop {  
> percentage =\> 100  
> }  
> }  
> }

then i ship 200 log to logstash  
target is: **_match log 100 ship and un-match log 100 drop_**

but node stats api show me

> {  
> "host" : "UAT-LOGSTASH-02",  
> "version" : "6.1.1",  
> "http\_address" : "127.0.0.1:9600",  
> "id" : "e87b9426-b9d5-4fad-9360-27791cf13ca3",  
> "name" : "UAT-LOGSTASH-02",  
> "events" : {  
> "in" : 200,  
> "filtered" : 200,  
> "out" : 200,  
> "duration\_in\_millis" : 2761,  
> "queue\_push\_duration\_in\_millis" : 93  
> }  
> }

and kibana show me **_my target 100 hits_**.

so, my question is that why node api show "out" : 200?  
and is drop filter plugin actual drop?

appreciate if someone explain me!! 🙂

---

<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:** [February 9, 2018, 9:14am UTC](https://discuss.elastic.co/t/node-stats-api-result-after-dropping-the-logs/115247/2 "2018-02-09T09:14:35Z")

</div>

Closed on February 9, 2018, 9:14am UTC

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