# Best way to measure performance and efficiency

**URL:** <https://discuss.elastic.co/t/best-way-to-measure-performance-and-efficiency/80439>\
**Category:** Logstash\
**Created:** [March 29, 2017, 8:42am UTC](https://discuss.elastic.co/t/best-way-to-measure-performance-and-efficiency/80439 "2017-03-29T08:42:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![parrot](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@parrot](https://discuss.elastic.co/u/parrot)\
**Post date:** [March 29, 2017, 8:42am UTC](https://discuss.elastic.co/t/best-way-to-measure-performance-and-efficiency/80439/1 "2017-03-29T08:42:18Z")

</div>

Hello,  
Because im parsing big amount of logs, i want to reduce the time it takes to parse them with logstash.

Most of the configuration im using grok, so i want to compare it in different ways on different log files sizes.

What is the best way to measure the lines per second logstash is parsing?

I tried:  
metrics {  
meter =\> "events"  
add\_tag =\> "metric"   
}

but i cant figure what the output is telling me?( it also changes it values every second).  
output:  
"events" =\> {  
"rate\_1m" =\> 0.4848158243742716,  
"rate\_15m" =\> 47.6986304224836,  
"count" =\> 331, ----(This is number of lines in the log file)  
"rate\_5m" =\> 24.762913972657874

Thanks for the help.

---

<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 29, 2017, 8:45am UTC](https://discuss.elastic.co/t/best-way-to-measure-performance-and-efficiency/80439/2 "2017-03-29T08:45:03Z")

</div>

You are looking at the per-second event rates over sliding windows of 1, 5, and 15 minutes.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 29, 2017, 8:45am UTC](https://discuss.elastic.co/t/best-way-to-measure-performance-and-efficiency/80439/3 "2017-03-29T08:45:46Z")

</div>

The latest version of Logstash exposes a [monitoring API](https://www.elastic.co/guide/en/logstash/current/monitoring.html) which can give you better insight into how different parts of the pipeline performs.

---

<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 26, 2017, 8:46am UTC](https://discuss.elastic.co/t/best-way-to-measure-performance-and-efficiency/80439/4 "2017-04-26T08:46:04Z")

</div>

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