Community discussions

MikroTik App
 
hugal
just joined
Topic Author
Posts: 14
Joined: Thu Sep 28, 2017 7:33 pm

Request New Package with TAR

Fri Sep 29, 2017 12:32 pm

Law requires to log user traffic on internet (WiFi hotspot,...)
If we use MikroTIK as a Gateway we can log user traffic remotely or locally.
I use this script as a test:
/ip hotspot user profile set [ find default=yes ] on-login="/ip firewall mangle add chain=forward src-address=\$address connection-state=new action=log log=yes log-prefix=\$user comment=\$user" on-logout="/ip firewall mangle remove [find comment=\"\$user\"]" queue-type=default-small shared-users=unlimited status-autorefresh=15m

It will be great to have a package in order to compress the log file before sending it over the WAN.
By logging all the traffic on a remote server I generated a 50Mo files for one device during 1 hour.
With TAR gz it becomes a 1.6Mo files.

Do you planned to add this feature?
 
User avatar
pcunite
Forum Guru
Forum Guru
Posts: 1347
Joined: Sat May 25, 2013 5:13 am
Location: USA

Re: Request New Package with TAR

Fri Sep 29, 2017 7:45 pm

I don't use this feature, but can you syslog all that traffic to another server real-time? Otherwise, compressing does sound good.
 
hugal
just joined
Topic Author
Posts: 14
Joined: Thu Sep 28, 2017 7:33 pm

Re: Request New Package with TAR

Mon Oct 02, 2017 10:56 am

I can syslog all traffic real-time but it uses 14ko/s for one device (intense internet traffic).
we can reduce it by 30 if compression was a feature: 50Mo -> Compression -> 1.6Mo