# Metricbeat Windows network stats resetting (MIB\_IFROW vs MIB\_IFROW2)

**URL:** <https://discuss.elastic.co/t/metricbeat-windows-network-stats-resetting-mib-ifrow-vs-mib-ifrow2/120858>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [February 21, 2018, 2:02pm UTC](https://discuss.elastic.co/t/metricbeat-windows-network-stats-resetting-mib-ifrow-vs-mib-ifrow2/120858 "2018-02-21T14:02:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CeeDee](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@CeeDee](https://discuss.elastic.co/u/CeeDee)\
**Post date:** [February 21, 2018, 2:02pm UTC](https://discuss.elastic.co/t/metricbeat-windows-network-stats-resetting-mib-ifrow-vs-mib-ifrow2/120858/1 "2018-02-21T14:02:48Z")

</div>

Hi,

On Windows based hosts the network statistics seem to be reset at 4GB.

There's already an older thread about this, but it's closed, hence the new thread.

According to the [answer by Andrew Kroh](https://discuss.elastic.co/t/network-data-value-resets-at-4gb/78384), this is because 'The data is returned from Windows in a MIB\_IFROW which uses a DWORD (uint32) to store the value. So it will always rollover after 4GB.'

Is there any reason why the [MIB\_IF\_ROW2 structure](https://msdn.microsoft.com/en-us/library/windows/desktop/aa814491(v=vs.85).aspx) is not used instead? This structure uses ULONG64, which would prevent the values from resetting at 4,294,967,295.

Thank you in advance for your reply.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [February 23, 2018, 11:04pm UTC](https://discuss.elastic.co/t/metricbeat-windows-network-stats-resetting-mib-ifrow-vs-mib-ifrow2/120858/2 "2018-02-23T23:04:18Z")

</div>

> [@CeeDee](#):
>
> Is there any reason why the MIB\_IF\_ROW2 structure is not used instead?

I'm not sure why `MIB_IF_ROW2` wasn't used. We use a third-party library, gopsutil, to get the information and [it uses](https://github.com/shirou/gopsutil/blob/12ab94e8042b4639d3cbd6bdafd0be9be8a33e88/net/net_windows.go#L49-L61) `MIB_IFROW`.

It would be nice to have gopsutil using the MIB\_IF\_ROW2 so we can get 64-bit counters.

---

<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:** [March 23, 2018, 11:04pm UTC](https://discuss.elastic.co/t/metricbeat-windows-network-stats-resetting-mib-ifrow-vs-mib-ifrow2/120858/3 "2018-03-23T23:04:20Z")

</div>

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