LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-08-2005, 11:20 AM   #1
deoren
Member
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216

Rep: Reputation: 30
Webalizer truncates User Agents to 61 characters [SOLVED]


Here is an example User Agent string from my Apache log file:

Quote:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Here is what Webalizer shows in it's report:
Quote:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7
It seems that Webalizer truncates the User Agent to 61 characters. Does anyone else have trouble with this or is it just a Fedora Core 1 issue?

Thanks.

Last edited by deoren; 04-11-2005 at 08:34 AM.
 
Old 01-08-2005, 11:28 PM   #2
evilmrhenry
Member
 
Registered: Oct 2003
Distribution: Knoppix
Posts: 103

Rep: Reputation: 15
From the manual:

-M num
MangleAgents. Mangle user agent names according to the mangle level specified by num. Mangle levels are:
5 Browser name and major version.
4 Browser name, major and minor version.
3 Browser name, major version, minor version to two decimal places.
2 Browser name, major and minor versions and sub-version.
1 Browser name, version and machine type if possible.
0 All informaiton (left unchanged).

MangleAgents num
Mangle user agent names based on mangle level num. See the -M command line switch for mangle levels and their meaning. The default is 0, which doesn't mangle user agents at all.

If running with a -M command-line option, change to -M0. If using a config file, look for and change the MangleAgents line.

http://www.mrunix.net/webalizer/webalizer.1.html
 
Old 01-09-2005, 08:52 AM   #3
deoren
Member
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216

Original Poster
Rep: Reputation: 30
MangleAgents 0

In the config file, it is set for M0:
Quote:
MangleAgents 0
Any other ideas?
Thanks for your reply.
 
Old 01-13-2005, 11:36 AM   #4
deoren
Member
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216

Original Poster
Rep: Reputation: 30
From the developer himself

My question:
Quote:
Hi Brad,

I've noticed that webalizer seems to have a 61
character limitation when reporting User Agents. Is
there any way around this short of modifying the
source?

Thanks.
His reply:
Quote:
Edit webalizer.h, change the value for MAXAGENT to whatever you
like and re-compile.

Last edited by deoren; 01-15-2005 at 08:46 PM.
 
Old 01-17-2005, 05:55 AM   #5
deoren
Member
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216

Original Poster
Rep: Reputation: 30
Works like a charm!

Just wanted to post back and say that it works great. If anyone else would like a rpm, source rpm, or the modified spec file + patch (very minor one) let me know. I went ahead and made them so I wouldn't have to do this again in the future.

Cheers!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot add user with UPPER-case characters awesomejt Fedora 10 07-19-2007 12:13 AM
why cannot create user account with uppercase characters on redhat EL3 ? hector48 Red Hat 3 07-15-2005 04:04 PM
Which mail agents should I use? orakio Linux - Newbie 2 03-13-2004 10:21 AM
Running FTP inside Shell Script truncates files jbhanc0125 Red Hat 3 01-16-2004 11:37 AM
agents jamna Linux - Newbie 1 11-29-2001 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration