Dear Analog users, dear Stephen,
Stephen, good to have you back, I hope your health is steadily
improving.
Let me here summarize the capability of analyzing CGI-parameters of
analog 4.11, and please correct
me if I'm wrong. First an example:
A web system uses java servlets to produce dynamic HTML files
(database driven) and
supports multiple languages. A CGI parameter "lang" specifies the language
which defaults
to zero (0), the default language, let's say english. Log lines look
like
192.168.1.1 - username [date] "GET /servlet/com.xxx.yyy?lang=2
HTTP/1.0" 200 -
192.168.1.1 - username [date] "GET /servlet/com.xxx.yyy
HTTP/1.0" 200 -
192.168.1.1 - username [date] "GET /servlet/com.xxx.yyy
HTTP/1.0" 200 -
192.168.1.1 - username [date] "GET /servlet/com.xxx.yyy?lang=1&b=c&search=abc
HTTP/1.0" 200 -
192.168.1.1 - username [date] "GET /servlet/com.xxx.yyy?lang=0&category=99
HTTP/1.0" 200 -
192.168.1.1 - username [date] "GET /servlet/com.xxx.yyy?lang=4
HTTP/1.0" 200 -
192.168.1.1 - username [date] "GET /servlet/com.xxx.yyy?lang=2
HTTP/1.0" 200 -
Now the management needs to know how many people use what language.
A report that looks like:
LANGUAGES
English (0): 3
Chinese (1): 1
Spanish (2): 2
German (3): 0
Japanese (4): 1
Please note the aliasing of the parameters (names for numbers for the
not-so-technical management)
as well as counting the lines without the default in the default language
(line 2, 3, 5).
To the best of my knowledge analog-4.11 cannot do this. [except you specify
this as a referer
and then run one analog per CGI variable, which somehow did not count
correctly in my case,
I'm not sure why, it seems only lines that have the parameter 'targeturl'
are counted].
Stephen, anything you'd like to do?
The rest of you, had ANYBODY EVER had the same problem? It seems like
I'm the VERY first
person on this planet - even I talked with Stephen about this 2 years
ago.
Actually I'd like to provide a module or plug-in, that can do that.
I tried to read the code and failed.
Stephen, what do you think about modules or plugins?
Hope this was not tooooooo long. THANKS AND BYE
--
Michael Janich, Chief Technology Officer, RawMart.com, Hong Kong
17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China
Tel: +852 2861-4615. Fax: +852 2865-3865. http://www.rawmart.com