1 |
On Sun, 7 Aug 2005, glumtail wrote: |
2 |
|
3 |
> Why not write a GLOBAL script for collecting some usefull information? |
4 |
> And then just be included in every pages, store records in a |
5 |
> particular file. |
6 |
|
7 |
This is a horrible way to do it. A lot of free stats services do something |
8 |
similar with a block of JavaScript (usually some code that hits a script |
9 |
on the stats server while the page is loading). |
10 |
|
11 |
Since your web server logs accesses and errors it does most of the work |
12 |
for you! All you need to do is download the logs and run analog on them |
13 |
(optional: you could also setup analog to feed data to reportmagic). |
14 |
|
15 |
On our servers we have written scripts to do this weekly. |
16 |
|
17 |
|
18 |
> 2005/8/7, Hans-Werner Hilse <hilse@×××.de>: |
19 |
> > Hi, |
20 |
> > |
21 |
> > On Sat, 06 Aug 2005 12:34:58 -0300 |
22 |
> > Mauro Faccenda <faccenda@×××.net> wrote: |
23 |
> > |
24 |
> > > I have an customer that has a website hosted in a chrooted environment |
25 |
> > > and want a stats page (hits, origin, etc...) I have access to the apache |
26 |
> > > logs but I don't have a shell access, so I was thinking if there is any |
27 |
> > > php script that reads the log file and plots a nice web page with those |
28 |
> > > stats. |
29 |
> > > |
30 |
> > > Or can anyone suggest another solution? |
31 |
> > |
32 |
> > Hm, I don't think using a simple php script would work very reliably. |
33 |
> > Parsing the log files can become a heavy task depending on the |
34 |
> > logfile's size. So I think it's always the best solution to run the |
35 |
> > analyzer from command line. |
36 |
> > |
37 |
> > You could e.g. run the analyzer on a different host where you have |
38 |
> > command line access and can run that scripted every night. The |
39 |
> > resulting stats pages and graphs can then be synced back to the web- |
40 |
> > only server. |
41 |
> > |
42 |
> > Another possibility would be to use desktop programs for the logfile |
43 |
> > analysis. I don't know of good free programs here, but at least there |
44 |
> > are a few very professional commercial ones. |
45 |
> > |
46 |
> > Both solutions only require access to the logfile which you told you |
47 |
> > have. |
48 |
> > |
49 |
> > -hwh |
50 |
> > -- |
51 |
> > gentoo-user@g.o mailing list |
52 |
> > |
53 |
> > |
54 |
> |
55 |
> |
56 |
|
57 |
-- |
58 |
English |
59 |
|
60 |
1. n. obs. The source code for a program, which may |
61 |
be in any language, as opposed to the linkable or executable binary |
62 |
produced from it by a compiler. The idea behind the term is that |
63 |
to a real hacker, a program written in his favorite programming |
64 |
language is at least as readable as English. Usage: mostly by |
65 |
old-time hackers, though recognizable in context. 2. The official |
66 |
name of the database language used by old the Pick Operating System, |
67 |
actually a sort of crufty, brain-damaged SQL with delusions of |
68 |
grandeur. The name permitted marketroids to say "Yes, and you |
69 |
can program our computers in English!" to ignorant suits |
70 |
without quite running afoul of the truth-in-advertising laws. |
71 |
|
72 |
-- |
73 |
gentoo-user@g.o mailing list |