# Count message for user

**URL:** <https://discuss.elastic.co/t/count-message-for-user/126042>\
**Category:** Logstash\
**Created:** [March 29, 2018, 7:53am UTC](https://discuss.elastic.co/t/count-message-for-user/126042 "2018-03-29T07:53:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeliko79](https://avatars.discourse-cdn.com/v4/letter/z/ea666f/32.png) [@zeliko79](https://discuss.elastic.co/u/zeliko79)\
**Post date:** [March 29, 2018, 7:53am UTC](https://discuss.elastic.co/t/count-message-for-user/126042/1 "2018-03-29T07:53:26Z")

</div>

Hello everyone,  
I was able to configure ELK cluster and grok for postfix, now I have a problem in finding information.  
For every message sent I have 2 records similar to these:

- postfix\_queueid, postfix\_from
- postfix\_queueid, postfix\_to, postfix\_queueid, postfix\_status

How can I do to have a single line with:

postfix\_queueid, postfix\_from, postfix\_to, postfix\_status

Thank you

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 30, 2018, 5:15pm UTC](https://discuss.elastic.co/t/count-message-for-user/126042/2 "2018-03-30T17:15:30Z")

</div>

An [aggregate filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-aggregate.html) might work. Can you give actual examples of the events?

---

<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 27, 2018, 5:15pm UTC](https://discuss.elastic.co/t/count-message-for-user/126042/3 "2018-04-27T17:15:31Z")

</div>

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