Community discussions

MikroTik App
 
cicserver
Member
Member
Topic Author
Posts: 303
Joined: Sun Jul 24, 2011 12:04 pm

Username in web proxy Logs or squid logs

Wed Aug 20, 2014 1:14 pm

How can I log users browsing with there user name ? (instead of ip address)
 
agehall
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Fri Aug 15, 2014 8:47 pm

Re: Username in web proxy Logs or squid logs

Wed Aug 20, 2014 1:43 pm

In the general case - you can't because there is no concept of a username in general browsing.

Now, tell us more about your setup. Does your users log in via your systems? Are you forcing them to use a proxy?
 
cicserver
Member
Member
Topic Author
Posts: 303
Joined: Sun Jul 24, 2011 12:04 pm

Re: Username in web proxy Logs or squid logs

Thu Aug 21, 2014 8:51 am

I just want to have proper logs of users browsing, either via Mikrotik web proxy, or route them to SQUID proxy.
 
agehall
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Fri Aug 15, 2014 8:47 pm

Re: Username in web proxy Logs or squid logs

Thu Aug 21, 2014 12:47 pm

Well, unless you force your users to log into a proxy, you can't log usernames - there simply isn't such a concept. If you do force them to log in to the proxy, you should be able to log the usernames, at least with Squid, not sure about MT though.

You can of course do elaborate things to map IP => usernames from logs but that is rarely a simple nor exact way of doing it.

Who is online

Users browsing this forum: No registered users and 18 guests