Skip to content

Commit 0b591af

Browse files
committed
Add sample output
1 parent 49beeaf commit 0b591af

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,50 @@
66
* In tail mode there's an alarm for having lots of hits in the last 2 mins.
77
* There's also a very basic apache access log emulator to test the Monitor program in a realistic scenario
88

9+
## Sample Output
10+
<pre>
11+
Generating initial stats from w3c log
12+
#################################
13+
Processed in 1.82s at 17:47:19 2016-01-27
14+
Period: 12:13:20 2015-11-30 - 12:16:00 2015-12-31
15+
16+
Hits: 419087 Users: 10279 Data: 5.9 GiB
17+
Sections: 189 Pages: 2163
18+
Hits in last 120s: 0
19+
20+
No alerts to display
21+
22+
Most hits by status
23+
200 (399148 hits, 5.9 GiB)
24+
304 (10641 hits, 0.0 B)
25+
301 (5278 hits, 1.2 MiB)
26+
404 (2828 hits, 20.0 MiB)
27+
206 (827 hits, 13.5 MiB)
28+
29+
Most hits by section
30+
root (345020 hits, 5.3 GiB)
31+
static-images (35484 hits, 198.6 MiB)
32+
ajax (29615 hits, 124.3 MiB)
33+
oldSites (4414 hits, 118.4 MiB)
34+
photos (1412 hits, 71.8 MiB)
35+
36+
Most hits by host
37+
37.205.63.195 (49163 hits, 1.7 GiB)
38+
188.39.39.50 (40259 hits, 165.9 MiB)
39+
212.49.193.102 (23417 hits, 97.1 MiB)
40+
80.169.201.66 (11804 hits, 48.9 MiB)
41+
86.181.63.3 (10158 hits, 41.2 MiB)
42+
43+
Most hits by page
44+
/currcam_small.jpg (125909 hits, 388.4 MiB)
45+
/currcam.jpg (74126 hits, 2.4 GiB)
46+
/ajax/wx-body.php (28711 hits, 122.4 MiB)
47+
/mainGraph1.png (28340 hits, 159.5 MiB)
48+
/mainGraph2.png (28289 hits, 250.6 MiB)
49+
50+
#################################
51+
HTTP Log Monitor finished
52+
</pre>
953

1054
## Design TODO:
1155
* Separate out display logic into its own class rather than having a long output_to_console function in Monitor

0 commit comments

Comments
 (0)