Hi,
I have already implemented your requirement. Here is the output. Please review and let me know your comments
Date,Time,Packets Received, Packets Transmitted
2020-11-30,08:25:12,142187,58850
2020-11-30,08:25:13,142187,58850
2020-11-30,08:25:14,142187,58850
2020-11-30,08:25:15,142191,58854
2020-11-30,08:25:16,142196,58858
Here the network interface i have used is the LAN network (over which I connect to the internet)
We can customize the output to meet your needs once the project is awarded.
Looking forward to work with you. I'm from India (Chennai) too. I can support you over phone if required.
System information:
Linux workstation 5.9.10-arch1-1 #1 SMP PREEMPT Sun, 22 Nov 2020 14:16:59 +0000 x86_64 GNU/Linux
GNU bash, version 5.0.18(1)-release (x86_64-pc-linux-gnu)