# Count of Log messages on logstash

**URL:** <https://discuss.elastic.co/t/count-of-log-messages-on-logstash/237827>\
**Category:** Logstash\
**Created:** [June 19, 2020, 3:22pm UTC](https://discuss.elastic.co/t/count-of-log-messages-on-logstash/237827 "2020-06-19T15:22:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![NerdSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerdsec/32/22056_2.png) [@NerdSec](https://discuss.elastic.co/u/NerdSec)\
**Post date:** [June 21, 2020, 2:20pm UTC](https://discuss.elastic.co/t/count-of-log-messages-on-logstash/237827/4 "2020-06-21T14:20:41Z")

</div>

Hi Dublin,

Yes it is definitely possible. @steffens had helped me on an [issue](https://discuss.elastic.co/t/filebeat-slow-improve-performance/144717/3) a couple of years back

The relevant part is as follows:  
simple logstash config for testing:

```auto
input {
  beat { ... }
}

output {
  stdout { codec => dots }
}

```

This config prints one dot per event. Using pv we can measure throughput:

```auto
./bin/logstash test.cfg | pv -War > /dev/null

```

This will give you the event rate in terms of bytes/sec. To get an idea about the actual event rate, you will have to use the [metric filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-metrics.html). Hope this helps! 🙂

---

_[View the full topic](https://discuss.elastic.co/t/count-of-log-messages-on-logstash/237827)._
