Loading ...
Sorry, an error occurred while loading the content.
 

Re: [webalizer] Webalizer user agent field is to short

Expand Messages
  • Enric Naval
    Safari is also beyond the 64 bytes barrier. I have to group it using the AppleWebKit/nnn.n part. ...
    Message 1 of 2 , Sep 21, 2005
      Safari is also beyond the 64 bytes barrier. I have to
      group it using the AppleWebKit/nnn.n part.

      --- Uwe Weissenbacher <UweWeissenbacher@...>
      wrote:

      > -----BEGIN PGP SIGNED MESSAGE-----
      > Hash: SHA1
      >
      > Hi
      >
      > The user agent fields of current browers are to long
      > for webalizers 64
      > bytes string. If I take my logfile for example:
      >
      >
      > $ awk -F\" ' { print $6} '
      > blog.planet-uwe.de_access_log |sort|uniq >
      > agents.txt
      > $ while read i ; do LEN=`echo - $i |wc -c` ; echo
      > "$LEN $i" ; done <
      > agents.txt |sort -n|tail -n 6
      > 101 Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de)
      > AppleWebKit/412.7
      > (KHTML, like Gecko) Safari/412.5
      > 103 Mozilla/5.0 (X11; U; Linux i686; en-US;
      > rv:1.7.10) Gecko/20050720
      > Fedora/1.0.6-1.1.fc3 Firefox/1.0.6
      > 103 Mozilla/5.0 (X11; U; Linux i686; en-US;
      > rv:1.7.10) Gecko/20050909
      > Fedora/1.0.6-1.2.fc4 Firefox/1.0.6
      > 112 Mozilla/4.0 (compatible; MSIE 5.0; Windows NT;
      > Girafabot; girafabot
      > at girafa dot com; http://www.girafa.com)
      > 113 Mozilla/5.0 (X11; U; Linux i686; de-DE;
      > rv:1.7.10) Gecko/20050825
      > Firefox/1.0.4 (Debian package 1.0.4-2sarge3)
      > 140 Mozilla/5.0 (X11; U; Linux i686; en-US;
      > rv:1.7.10) Gecko/20050909
      > Fedora/1.0.6-1.2.fc4 Firefox/1.0.6,gzip(gfe) (via
      > translate.google.com)
      >
      > As you can see the maximum length in my logfile (not
      > very big though) is
      > 140 Bytes.
      > $ ls -lh blog.planet-uwe.de_access_log
      > - -rw-r--r-- 1 uwe users 823K 20. Sep 22:40
      > blog.planet-uwe.de_access_log
      > This is especially a problem if you want to use
      > GroupAgent (firefox for
      > example does not get grouped because its tag lies
      > behind the 64 bytes
      > barrier). I created a patch, that changes the value
      > in the file
      > webalizer.h to 128 bytes.
      >
      >
      > greets
      > Uwe Weissenbacher
      > -----BEGIN PGP SIGNATURE-----
      > Version: GnuPG v1.4.1 (GNU/Linux)
      >
      >
      iD8DBQFDMHftG2KaxgernrARAj0yAJ4zszofnaOrCzQnDSP7wgiDIJs6BgCeJtpo
      > LsZtpjEedIM81CyjM8dLNbI=
      > =qpjO
      > -----END PGP SIGNATURE-----
      > > --- webalizer.h 2005-09-14 10:09:51.000000000
      +0200
      > +++ webalizer.h 2005-09-14 10:16:07.000000000 +0200
      > @@ -17,7 +17,7 @@
      > #define MAXURLH 128 /* Max URL
      > field size in htab */
      > #define MAXREF 1024 /* Max
      > referrer field size */
      > #define MAXREFH 128 /* Max
      > referrer field size in htab */
      > -#define MAXAGENT 64 /* Max user
      > agent field size */
      > +#define MAXAGENT 128 /* Max user
      > agent field size */
      > #define MAXCTRY 48 /* Max
      > country name size */
      > #define MAXSRCH 256 /* Max size
      > of search string buffer */
      > #define MAXSRCHH 64 /* Max size
      > of search str in htab */
      >


      Enric Naval
      Estudiante de Informática de Gestión en la Udl (Lleida)
      GRIHO webalizer.conf
      http://griho.udl.es/webalizer/webalizer.conf.txt



      __________________________________
      Yahoo! Mail - PC Magazine Editors' Choice 2005
      http://mail.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.