This page last changed on июл 06, 2009 by esl.
Index Docs -> How It Work WIKI Thanks Version User Stuff Skins Contact Forum Download

How It Work

We have 2 almost independent steps:

lightparser

it parse access.log and generate data into report folder
Here you need to choose how to distinguish user, by IP, or by NICK.
I call this USERID

web part

Generates different reports using report folder
use USERID ...
and GROUPS ...

this part may be on different machines on network ....

now lets see some examples

LightParser

sample 1 :: USERID - IP

we have squid without authorization. access.log look like this

if you want to collect info, you should use ip

set $ip2name="ip" in lightsquid.cfg

and your report will be like one:

not so useful

sample 2 :: USERID - AUTHID

we have squid with authorization. access.log look like this

If you want to collect info, you should use authuserid

set $ip2name="squidauth" in lightsquid.cfg

and your report will be like this one:

A little bit more useful useful

sample 3 :: USERID - NICK by table

we have squid without authorization. access.log look like this

if you want to collect info using user nick, not ip, you should use the following syntax

set $ip2name="list" in lightsquid.cfg

edit ip2name/ip2name.list and edit path to ip2name list

list look like

and your report will be like this one

we got the same result as in 2nd example !!

WEB Part

Now lets try to make our report more useful

Make the following changes to lightsquid.cfg and realname.cfg

in lightsquid.cfg - $userealname=1;
Web Look realname.cfg
$userealname=0;
you understand how ?

If you chosed to use nick as userid, changes should be:

Web Look realname.cfg
$userealname=0;

some GROUPS samples

in lightsquid.cfg - $showgrouplink=1;

Document generated by Confluence on июл 07, 2009 00:15
SourceForge.net Logo