# How to calculate each IP address count,avg requests per day,bit size,byte size in packet beats

**URL:** <https://discuss.elastic.co/t/how-to-calculate-each-ip-address-count-avg-requests-per-day-bit-size-byte-size-in-packet-beats/67068>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [November 24, 2016, 8:13am UTC](https://discuss.elastic.co/t/how-to-calculate-each-ip-address-count-avg-requests-per-day-bit-size-byte-size-in-packet-beats/67068 "2016-11-24T08:13:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurram\_Vinay](https://avatars.discourse-cdn.com/v4/letter/g/85e7bf/32.png) [@Gurram\_Vinay](https://discuss.elastic.co/u/Gurram_Vinay)\
**Post date:** [November 24, 2016, 8:13am UTC](https://discuss.elastic.co/t/how-to-calculate-each-ip-address-count-avg-requests-per-day-bit-size-byte-size-in-packet-beats/67068/1 "2016-11-24T08:13:09Z")

</div>

Hello everyone,

Packet beats are really awesome, but I don't know how to calculate each IP address count per day,Avg requests per day,bit size,byte size with respect to IP in packet beats ?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [November 24, 2016, 9:18am UTC](https://discuss.elastic.co/t/how-to-calculate-each-ip-address-count-avg-requests-per-day-bit-size-byte-size-in-packet-beats/67068/2 "2016-11-24T09:18:24Z")

</div>

These metrics are normally computed by query from elasticsearch. You planing to query elasticsearch youself, or do you want to create visualizations/dashbaords in kibana?

The packetbeat kibana dashboards do contain some sample dashboards and visualizations. You can click on edit button to figure out how they are build. In addition, kibana can show you the query executed for a particular query.

---

<div class="post-metadata">

**Author:** ![Gurram\_Vinay](https://avatars.discourse-cdn.com/v4/letter/g/85e7bf/32.png) [@Gurram\_Vinay](https://discuss.elastic.co/u/Gurram_Vinay)\
**Post date:** [November 25, 2016, 5:49am UTC](https://discuss.elastic.co/t/how-to-calculate-each-ip-address-count-avg-requests-per-day-bit-size-byte-size-in-packet-beats/67068/3 "2016-11-25T05:49:57Z")

</div>

Thanks for your reply Steffens Siering,  
Well,  
I am new to #beats and #ELK stack and I have seen the kibana dashboard editing stuff, but I would like to make it dynamic visualisation(If it is kibana--static configuration, every time need to set up for avg.count from unique IP address etc) .But using ES(elastic search for dynamic ) seems to be work based on your reply,Could you please specify some tutorials - related to ES coding etc.Let me know if I understood wrongly.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [November 28, 2016, 3:28pm UTC](https://discuss.elastic.co/t/how-to-calculate-each-ip-address-count-avg-requests-per-day-bit-size-byte-size-in-packet-beats/67068/4 "2016-11-28T15:28:14Z")

</div>

The kibana docs contain a getting started: [https://www.elastic.co/guide/en/kibana/current/index.html](https://www.elastic.co/guide/en/kibana/current/index.html)

When creating a visualization you can bind it to a search query. Plus, when viewing the dashboard you can dynamically reduce data by filtering in the search bar or use [field filters](https://www.elastic.co/guide/en/kibana/current/field-filter.html).

Have you had a look at dashbaords shipped with packetbeat? Maybe they already contain the information you're interested in. Use discover to learn about structure and filter for events + apply filter to dashboard.

All dashboard state (actual dashbaord + filters) is stored in the URL. That is you can bookmark and share dashboards with filters applied.

---

<div class="post-metadata">

**Author:** ![Gurram\_Vinay](https://avatars.discourse-cdn.com/v4/letter/g/85e7bf/32.png) [@Gurram\_Vinay](https://discuss.elastic.co/u/Gurram_Vinay)\
**Post date:** [November 28, 2016, 5:03pm UTC](https://discuss.elastic.co/t/how-to-calculate-each-ip-address-count-avg-requests-per-day-bit-size-byte-size-in-packet-beats/67068/5 "2016-11-28T17:03:47Z")

</div>

Thanks for reply steffens, I will work out and let you guys know in this forum 🙂

---

<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:** [December 26, 2016, 5:03pm UTC](https://discuss.elastic.co/t/how-to-calculate-each-ip-address-count-avg-requests-per-day-bit-size-byte-size-in-packet-beats/67068/6 "2016-12-26T17:03:51Z")

</div>

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