1 |
Hi! |
2 |
|
3 |
On Tue, 05 Oct 2004, Andreas Herrmann wrote: |
4 |
> I searched the web for a nice tool to generate stats from rsync.log |
5 |
> The rsyncstats script from rsync crashes with following error: |
6 |
> |
7 |
[...] |
8 |
> I have over 100 syncs per day. Does somebody know a working solution for |
9 |
> analysing the rsync logs? |
10 |
|
11 |
That largely depends on what kind of statistics you need. I wrote |
12 |
a tool that reports the top ten users and very basic overall |
13 |
statistics like these (I edited the IPs and hostnames to protect |
14 |
the guilty): |
15 |
|
16 |
[...snip...] |
17 |
Total traffic: 45.35 GBytes |
18 |
Total number of unique IPs: 4931 |
19 |
Log seems to span 30.00 days. |
20 |
|
21 |
Top 10 Hosts by bytes |
22 |
bytes ( MBytes ) IP-Adress (Hostname) |
23 |
------------------------------------------------ |
24 |
342422302 ( 326.56M) 00.00.00.00 (UNKNOWN) |
25 |
378355766 ( 360.83M) 00.00.00.00 (UNKNOWN) |
26 |
402690213 ( 384.04M) 00.00.00.00 (UNKNOWN) |
27 |
474043815 ( 452.08M) 00.00.00.00 (UNKNOWN) |
28 |
717244240 ( 684.02M) 00.00.00.00 (UNKNOWN) |
29 |
759872340 ( 724.67M) 00.00.00.00 (UNKNOWN) |
30 |
1389014265 (1324.67M) 00.00.00.00 (UNKNOWN) |
31 |
2151855076 (2052.17M) 00.00.00.00 (UNKNOWN) |
32 |
3164767044 (3018.16M) 00.00.00.00 (UNKNOWN) |
33 |
5941073841 (5665.85M) 00.00.00.00 (UNKNOWN) |
34 |
------------------------------------------------ |
35 |
Top 5% of IPs (246) account for 28718099102 bytes (26.75GB) of traffic. |
36 |
Which is 58.97% of the total traffic. |
37 |
|
38 |
Top 10 Hosts by number of sessions |
39 |
Sessions per day IP-Adress (Hostname) |
40 |
------------------------------------- |
41 |
246 8.20 00.00.00.00 (UNKNOWN) |
42 |
309 10.30 00.00.00.00 (UNKNOWN) |
43 |
321 10.70 00.00.00.00 (UNKNOWN) |
44 |
328 10.93 00.00.00.00 (UNKNOWN) |
45 |
695 23.17 00.00.00.00 (UNKNOWN) |
46 |
823 27.43 00.00.00.00 (UNKNOWN) |
47 |
1055 35.17 00.00.00.00 (UNKNOWN) |
48 |
1372 45.73 00.00.00.00 (UNKNOWN) |
49 |
1419 47.30 00.00.00.00 (UNKNOWN) |
50 |
2759 91.97 00.00.00.00 (UNKNOWN) |
51 |
------------------------------------- |
52 |
Total number of sessions..........: 26932 |
53 |
Average number of sessions per day: 897.73 |
54 |
|
55 |
Top 5% of IPs (251) account for 15488 sessions. |
56 |
Which is 57.51% of the total number of sessions. |
57 |
|
58 |
Analyzed 56027 lines in 7.62 seconds, 7351.30 lines per second |
59 |
[...snap...] |
60 |
|
61 |
Currently this piece of... software is in no releasable shape, |
62 |
but if there's need, I'll get it into shape. |
63 |
|
64 |
Greets, |
65 |
Tobias |
66 |
|
67 |
PS: That performance is on a PIII/550 which is doing other stuff, |
68 |
too. |
69 |
|
70 |
-- |
71 |
export DISPLAY=vt100 |
72 |
|
73 |
-- |
74 |
gentoo-mirrors@g.o mailing list |