# Event count per second and

**URL:** <https://discuss.elastic.co/t/event-count-per-second-and/102903>\
**Category:** Logstash\
**Created:** [October 5, 2017, 7:45pm UTC](https://discuss.elastic.co/t/event-count-per-second-and/102903 "2017-10-05T19:45:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_chang7](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mr\_chang7](https://discuss.elastic.co/u/mr_chang7)\
**Post date:** [October 5, 2017, 7:45pm UTC](https://discuss.elastic.co/t/event-count-per-second-and/102903/1 "2017-10-05T19:45:00Z")

</div>

Hi,

I'd like to count the events coming in per second, and then want to decide something based on the count. How can I achieve this?

I tired to count the events by using aggregate plugin per second, but as you could imagine, I don't know if this is the last event to make a decision upon.

Thanks.

---

<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:** [October 6, 2017, 1:23am UTC](https://discuss.elastic.co/t/event-count-per-second-and/102903/2 "2017-10-06T01:23:02Z")

</div>

> [@mr\_chang7](#):
>
> decide based on the count

Decide what?

---

<div class="post-metadata">

**Author:** ![mr\_chang7](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mr\_chang7](https://discuss.elastic.co/u/mr_chang7)\
**Post date:** [October 6, 2017, 2:39am UTC](https://discuss.elastic.co/t/event-count-per-second-and/102903/3 "2017-10-06T02:39:18Z")

</div>

Decide or do something - whatever it is.

---

<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:** [November 3, 2017, 2:40am UTC](https://discuss.elastic.co/t/event-count-per-second-and/102903/4 "2017-11-03T02:40:15Z")

</div>

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