File: README.tools

package info (click to toggle)
ziproxy 3.3.2-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,084 kB
  • sloc: ansic: 9,864; sh: 1,705; makefile: 37
file content (47 lines) | stat: -rw-r--r-- 1,246 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Ziproxy Log Tools
-----------------


Ziproxy includes the following tools for analysing its access logs:

- ziproxylogtool (src/tools/ziproxylogtool, automatically installed)
- ziproxy_genhtml_stats.sh (src/tools/ziproxy_genhtml_stats.sh, not automatically installed)



QUICK WAY (for the ones who can't wait)
---------------------------------------

Make sure "ziproxylogtool" is installed.

$ ./ziproxy_genhtml_stats.sh <logfile> > my_stats.html



DESCRIPTION ON THE TOOLS
------------------------

"ziproxylogtool" is a low-level log analyser, its purpose is to be invoked by scripts.
It is expected to be reasonably fast and generic.

Examples:
$ cat access.log | ziproxylogtool -mg > stats.txt
$ ziproxylogtool -mh --bytes-out-min 1024 -i access.log -o stats.txt

For more information on this:
$ ziproxylogtool --help


"ziproxy_genhtml_stats.sh" is a high-level, HTML-generating, log analyser.
It's made in bash and uses ziproxylogtool.
The idea is to provide it as an example, but it may be used as-is, and may be
modified to suits better one's needs.

Examples:
$ ./ziproxy_genhtml_stats.sh access.log > pretty_http_stats.html
$ ./ziproxy_genhtml_stats.sh access.log "My Company Inc. traffic" > even_prettier_http_stats.html




(EOF)