# Simple traffic/data volume monitoring

**URL:** <https://forum.mikrotik.com/t/simple-traffic-data-volume-monitoring/171615>\
**Category:** General\
**Created:** [December 2, 2023, 3:43pm UTC](https://forum.mikrotik.com/t/simple-traffic-data-volume-monitoring/171615 "2023-12-02T15:43:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![devrand](https://forum.mikrotik.com/letter_avatar/devrand/32/6_449c533f586939b6e5f246632a46421f.png) [@devrand](https://forum.mikrotik.com/u/devrand)\
**Post date:** [December 2, 2023, 3:43pm UTC](https://forum.mikrotik.com/t/simple-traffic-data-volume-monitoring/171615/1 "2023-12-02T15:43:51Z")

</div>

I’m currently looking for an easy way to get some data volume statistics (monthly usage info)  
It seems Mikrotik does not have anything out of the box (to reduce flash writes maybe?)

Must haves:

- Get monthly (this and previous month) information about Download/Upload

Optional/Nice to Have:

- information for the last 12 months
- Per Device (IP/MAC?) or Interface statistics

I’ve found a couple ways but all seem to be very custom or require an external server which I’m not really happy about;

**IP/Accounting** [https://wiki.mikrotik.com/wiki/Manual:IP/Accounting](https://wiki.mikrotik.com/wiki/Manual:IP/Accounting)

- no longer supported in RouterOS 7.0

**Traffic flow** [https://help.mikrotik.com/docs/display/ROS/Traffic+Flow](https://help.mikrotik.com/docs/display/ROS/Traffic+Flow)

- Requires external server to store the results

**Interface statistics** ( /interface print stats)

- will be reset by reboot (or firmware update)
- no monthly intervals, only cover what appeared from last boot

**Custom scripts**  
Some funny script which exports the daily status and resets the counters once a month? Alrough this will loose some data during reboots/firmware updates.  
Someone wrote something here; [https://github.com/muhannad0/mikrotik-traffic-counter](https://github.com/muhannad0/mikrotik-traffic-counter)  
But that again needs a server running somewhere  
  
  
Is there any obvious, simple and robust solution?  
It seems all the ways I’ve found are just too complex.

---

<div class="post-metadata">

**Author:** ![Moba](https://forum.mikrotik.com/letter_avatar/moba/32/6_449c533f586939b6e5f246632a46421f.png) [@Moba](https://forum.mikrotik.com/u/Moba)\
**Post date:** [December 2, 2023, 7:50pm UTC](https://forum.mikrotik.com/t/simple-traffic-data-volume-monitoring/171615/2 "2023-12-02T19:50:51Z")

</div>

You don’t provide any scenario requiring monitoring, so this is a generic answer. As a low impact home solution, you can make a simple queue to monitor your gateway interface and reset it manually each month. You can make a queue for each user/client, and do the same thing. The problem with services running on small embedded devices is always overhead. Many brands offer some sort of monitoring with a fancy GUI, but there’s a cost to it, one way or another. For professional/lab applications, having an external device/server isn’t generally an issue. MT has The Dude, but there are other solutions for ISP/WISP operators. Lots of threads on Reddit. If you are inquiring for a commercial application, consultants are also available.

[http://forum.mikrotik.com/t/tool-using-splunk-to-analyse-mikrotik-logs-4-0-graphing-everything/153043/1](http://forum.mikrotik.com/t/tool-using-splunk-to-analyse-mikrotik-logs-4-0-graphing-everything/153043/1)  
[http://forum.mikrotik.com/t/to-mt-keep-accounting-v7-x/151083/1](http://forum.mikrotik.com/t/to-mt-keep-accounting-v7-x/151083/1)  
[https://docs.librenms.org/Support/Device-Notes/Routeros/](https://docs.librenms.org/Support/Device-Notes/Routeros/)

---

<div class="post-metadata">

**Author:** ![devrand](https://forum.mikrotik.com/letter_avatar/devrand/32/6_449c533f586939b6e5f246632a46421f.png) [@devrand](https://forum.mikrotik.com/u/devrand)\
**Post date:** [December 3, 2023, 12:56pm UTC](https://forum.mikrotik.com/t/simple-traffic-data-volume-monitoring/171615/3 "2023-12-03T12:56:53Z")

</div>

One usecase would be a LTE router where want to get an idea about the data you consumed.  
Personally I just want to get an overview about the data usage on my internet connection.  
Per device would be a nice bonus, but not necessary.

Queue seem to not survive reboots/firmware updates, so those are not really an option.

Also, I’m not asking for a fancy gui. It’s just a couple numbers.  
Those do not create any real overhead.  
It seems they’ve chosen to just store them in RAM to reduce eeprom/flash writes and thus increase endurance.

---

<div class="post-metadata">

**Author:** ![holvoetn](https://forum.mikrotik.com/letter_avatar/holvoetn/32/6_449c533f586939b6e5f246632a46421f.png) [@holvoetn](https://forum.mikrotik.com/u/holvoetn)\
**Post date:** [December 3, 2023, 2:14pm UTC](https://forum.mikrotik.com/t/simple-traffic-data-volume-monitoring/171615/4 "2023-12-03T14:14:05Z")

</div>

IP accounting has been replaced by kid control.  
Don’t let the name fool you, it can do quite a bit more then just babysit.

---

<div class="post-metadata">

**Author:** ![simogere](https://forum.mikrotik.com/letter_avatar/simogere/32/6_449c533f586939b6e5f246632a46421f.png) [@simogere](https://forum.mikrotik.com/u/simogere)\
**Post date:** [January 23, 2024, 3:34pm UTC](https://forum.mikrotik.com/t/simple-traffic-data-volume-monitoring/171615/5 "2024-01-23T15:34:08Z")

</div>

Hi devrand, how did you resolve this?
