# Mail servers Logs

**URL:** <https://discuss.elastic.co/t/mail-servers-logs/180553>\
**Category:** Kibana\
**Created:** [May 10, 2019, 12:11pm UTC](https://discuss.elastic.co/t/mail-servers-logs/180553 "2019-05-10T12:11:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siddhant](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Siddhant](https://discuss.elastic.co/u/Siddhant)\
**Post date:** [May 10, 2019, 12:11pm UTC](https://discuss.elastic.co/t/mail-servers-logs/180553/1 "2019-05-10T12:11:00Z")

</div>

Hi friends,  
I am getting mail servers logs in elk now i want to visualize par day mail counts in graph  
but i am confused about that which field should i choose for the counting mails par day incoming and outgoing mails kindly help me for this problem

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [May 13, 2019, 4:21pm UTC](https://discuss.elastic.co/t/mail-servers-logs/180553/2 "2019-05-13T16:21:46Z")

</div>

@Siddhant,

the `count` is a top-level aggregation that does not require any additional field parameters. It just counts the documents within a time-frame.

e.g. this just counts the number of documents (in your case, these correspond to emails) by day

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/6/46786a19a7cdf9118fbdd99b2abf16f5d5fd0eae.png)

---

<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:** [June 10, 2019, 4:31pm UTC](https://discuss.elastic.co/t/mail-servers-logs/180553/3 "2019-06-10T16:31:43Z")

</div>

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