RE: [squid-users] Band New Squid Log Analyzer! [not working?]

From: Yuri N. Fominov <YuriF@dont-contact.us>
Date: Sun, 14 Sep 2003 17:42:03 +0500

        Hi,

I have fixed this problem. It happened because some AWK doesn't support
'systime' and some other functions.

New version is now available at
http://www.risk.az/scalar/scalar094/scalar.awk

In order to avoid this problem you have to
Change maintenance options (inside script header)
by setting 'disable_systime = no'

Good Luck.

Regards,

Yuri Fominov

-----Original Message-----
From: Esteban Ribicic [mailto:eribicic@sinectis.com]
Sent: Thursday, September 11, 2003 22:57
To: Yuri N. Fominov
Subject: Re: [squid-users] Band New Squid Log Analyzer! [not working?]

hi, ive tryed your awk script but did not work for my debian....any
idea?

lp:/usr/local/squid/logs# awk -f scalar.awk access.log
awk: scalar.awk: line 1519: function strftime never defined
awk: scalar.awk: line 1519: function strftime never defined
awk: scalar.awk: line 1519: function systime never defined
awk: scalar.awk: line 1519: function systime never defined
awk: scalar.awk: line 1519: function systime never defined
lp:/usr/local/squid/logs# head access.log
1063249150.358 404 10.0.3.138 TCP_MISS/200 649 GET
http://ar.atwola.com/html/93169980/244754559/aol? - DIRECT/64.12.174.57
text/html
1063249150.951 592 10.0.3.138 TCP_REFRESH_HIT/304 144 GET
http://ar.atwola.com/content/B0/0/H7pTL2Luf0_kw3xmlj8W1sns8a9RRNke8_SAqL
zKBa609jmULHVa8jgFKtiL69KXBbkUOL_qrDGEJrg7bdB94sHkUOqMVkd2lcNiApAo-e0$/a
ol - DIRECT/205.188.165.249 -
1063249153.175 423 10.0.2.155 TCP_IMS_HIT/304 203 GET
http://img.yupimsn.com/dm/gallery/118864.gif - NONE/- image/gif
1063249167.129 414 10.0.3.114 TCP_MISS/200 761 GET
http://195.149.159.157/Common/newflash.asp - DIRECT/195.149.159.157
text/html
1063249172.758 399 10.0.3.82 TCP_MISS/200 575 GET
http://ar.atwola.com/ - DIRECT/64.12.174.121 -
1063249173.960 2979 10.0.1.146 TCP_MISS/200 21411 POST
http://www.multimedios.org/cgi-bin/search/search.cgi -
DIRECT/200.80.13.194 text/html
1063249175.249 521 10.0.1.146 TCP_MISS/200 814 GET
http://www.multimedios.org/img/img_17.gif - DIRECT/200.80.13.194
image/gif
1063249175.509 259 10.0.1.146 TCP_MISS/200 814 GET
http://www.multimedios.org/img/img_20.gif - DIRECT/200.80.13.194
image/gif
1063249175.580 531 10.0.1.146 TCP_MISS/200 806 GET
http://www.multimedios.org/img/img_19.gif - DIRECT/200.80.13.194
image/gif
1063249175.761 251 10.0.1.146 TCP_MISS/200 809 GET
http://www.multimedios.org/img/img_18.gif - DIRECT/200.80.13.194
image/gif
lp:/usr/local/squid/logs# awk -v
awk: option -v lacks argument
lp:/usr/local/squid/logs# awk --version
awk: not an option: --version
lp:/usr/local/squid/logs# man awk
Reformatting awk(1), please wait...
lp:/usr/local/squid/logs# awk -W
awk: option -W lacks argument
lp:/usr/local/squid/logs# awk -w
awk: not an option: -w
lp:/usr/local/squid/logs# man awk
Reformatting awk(1), please wait...
lp:/usr/local/squid/logs#
lp:/usr/local/squid/logs# awk -W version
mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan

compiled limits:
max NF 32767
sprintf buffer 1020
lp:/usr/local/squid/logs# uname -a
Linux lp 2.4.21 #1 SMP Sun Jul 27 20:05:09 ART 2003 i686 unknown
lp:/usr/local/squid/logs#
Received on Sun Sep 14 2003 - 06:42:15 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:19:50 MST