TCP/IP connections stats aggregation

In Luci you can see realtime connections

/cgi-bin/luci/admin/status/realtime/connections

Is there a way to save those stats and aggregate daily or monthly data?
Like nlbwmon, but for IP addresses (and threir DNS names at that day)

Example:

2020-10-14
192.168.1.15 -> 1.1.1.1:53 udp (one.one.one.one)
192.168.1.30 -> 1.2.4.5:443 tcp (some.website.com)

2020-10-15
192.168.1.15 -> 8.8.8.8:53 udp (-)
192.168.1.45 -> 13.77.161.179:80 tcp (malware-as-a-service.com)

And so on

Thanks