Mailing List Archive

Log file problem
For the last three months we have been happily using analog 3.11 then 3.3 to produce the stats for the web site of the British Consulate-General in Jerusalem (www.britishconsulate.org). Unfortunately our ISP decided to activate a stats using Webalyzer and this has thrown out the log file so that analog no longer reads any new entries.

When using just analog we downloaded the log file from the server to one of our Win98 PCs and the entries would look like this:

195.44.97.10 - - [17/Jun/1999:14:37:18 +0300] "GET /chancery/jru.htm HTTP/1.1" 200 23109

No problem, analog read the file and we got the stats.

However, the new log file entries look like this......

206.117.202.151 - - [20/Jun/1999:09:06:03 +0300] "GET /graphics/c_divid.gif HTTP/1.0" 200 72 "http://www.britishconsulate.org/consular/travel.htm" "Mozilla/4.0 [en] (Win95; I)"

... and analog ignores them and views them as a corrupt entry.

Is there any way I can get analog to read the entries? If not, I will tell our ISP to take their stats package off because we still want to use analog.

Thanks for your help.

Rob Elliott
Jerusalem
www.britishconsulate.org
britain@palnet.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.meer.net/pipermail/analog-help/attachments/19990620/91334f49/attachment.html
Log file problem [ In reply to ]
On Sun, 20 Jun 1999, britain wrote:
>
> When using just analog we downloaded the log file from the server to one
> of our Win98 PCs and the entries would look like this:
>
> 195.44.97.10 - - [17/Jun/1999:14:37:18 +0300] "GET /chancery/jru.htm
> HTTP/1.1" 200 23109
>
> No problem, analog read the file and we got the stats.
>
> However, the new log file entries look like this......
>
> 206.117.202.151 - - [20/Jun/1999:09:06:03 +0300] "GET
> /graphics/c_divid.gif HTTP/1.0" 200 72
> "http://www.britishconsulate.org/consular/travel.htm" "Mozilla/4.0 [en]
> (Win95; I)"
>
> ... and analog ignores them and views them as a corrupt entry.
>

If they're in different files, it would be no problem -- analog can read
both types of file.

So I assume they're in the same file. In which case, you can tell analog to
look for lines in both formats by commands like
LOGFORMAT common
LOGFORMAT combined
LOGFILE [your logfile here]

--
Stephen Turner sret1@cam.ac.uk http://www.statslab.cam.ac.uk/~sret1/
Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England
"Due to the conflict in Kosovo, we will not be showing the movie Wag the
Dog. Instead, we will show Mortal Kombat: Annihilation." Cable & Wireless

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to analog-help-REQUEST@lists.isite.net
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/
------------------------------------------------------------------------
Log file problem [ In reply to ]
> So I assume they're in the same file. In which case, you can tell analog
to
> look for lines in both formats by commands like
> LOGFORMAT common
> LOGFORMAT combined
> LOGFILE [your logfile here]


Thank you, just as your email came in I had (belatedly) found the section on
"Specifying a log format" in the Readme File. It is all laid out quite
clearly, so in future I will RTFM! The solution was Logformat Common then
Logformat Combined as you suggested.

Many thanks for producing just a good stats package.

Rob Elliott
British Consulate-General
Jerusalem
www.britishconsulate.org
britain@palnet.com

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to analog-help-REQUEST@lists.isite.net
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/
------------------------------------------------------------------------
Log file problem [ In reply to ]
That should have read
Many thanks for producing such a good stats package. (not just - I'm sure
you do other things as well)

Rob Elliott
British Consulate-General
Jerusalem
www.britishconsulate.org
britain@palnet.com


------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to analog-help-REQUEST@lists.isite.net
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/
------------------------------------------------------------------------
Re: Log file problem [ In reply to ]
Hi Aengus

Many thanks for your help with this. I'll have a go with it tomorrow.

Much appreciated

Mo

----- Original Message ----
From: Aengus <analog07@eircom.net>
To: Support for analog web log analyzer <analog-help@lists.meer.net>
Sent: Monday, 5 November, 2007 8:51:08 PM
Subject: Re: [analog-help] Log file problem

Mo Awkati <mawkati@yahoo.co.uk> wrote:
> Hi
>
> I am new to using Analog and to the list. I have been having problems
> getting the stats from our church website.
>
> The setup is as follows:
>
> The website is hosted on a Linux server running LAMP. Below is an
> example of a line from the log file in use:
>
> stpeterskinver.org: [21/Oct/2007:01:53:29 +0100] 72.36.115.74 - -
> "GET /robots.txt HTTP/1.0" 404 204 "-" "CazoodleBot/CazoodleBot-0.1
> (CazoodleBot Crawler; http://www.cazoodle.com/cazoodlebot;
> cazoodlebot@cazoodle.com)"
>
> No matter what LOGFORMAT I use I keep getting error messages about
> corrupt lines. I checked with the website host and they said the log
> file format is plain text and it has a .log extension.

The log file is a plain text file with a .log extension, but that's not
what "logfile format" means, as you appear to know, but your service
provider doesn't :-(. The problem is that you have a "standard"
logformat with an additional field at the start - the "stpeterskinver.org: "
that your ISP is using to separate your logentries from everyone elses,
but in a location that can't be recognized automatically.

This LOGFORMAT matches the line you provided:
LOGFORMAT (%v: [%d/%M/%Y:%h:%n:%j] %S %j %j "%j %r %j" %c %b "%f" "%B")

> I am copying the log files from the ftp server and then using the
> LOGFILE to point to a folder in my home directory. I would also like
> the output to go to the same folder.

You can tell Analog where to put it's output with the OUTFILE command,
or +O command line parameter. But if you put it in a different
location, you may need to set the IMAGEDIR and CHARTDIR and LOCALCHARTDIR
settings too.

Aengus


+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------






___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/