1apachetop(1) USER COMMANDS apachetop(1)
2
3
4
6 apachetop - display real-time web server statistics
7
9 apachetop [-f filename] [-H hits | -T time] [-q] [-l] [-s segments]
10 [-p] [-r secs]
11
13 ApacheTop watches a logfile generated by Apache (in standard common or
14 combined logformat, and generates human-parsable output in realtime.
15
16 -f logfile
17 Select which file to watch. Specify this option multiple times
18 to watch multiple files.
19
20 -H hits | -T time
21 These options are mutually exclusive. Specify only one, if any
22 at all. They work as follows. ApacheTop maintains a table of
23 information internally containing all the relevant information
24 about the hits it's seen. This table can only be a finite size,
25 so you need to decide how big it's going to be. You have two
26 options. You can either: Use -H to say "remember <this many>
27 hits" or Use -T to say "remember all hits in <this many> sec‐
28 onds" The default (at the moment) is to remember hits for 30
29 seconds. Setting this too large (whichever option you choose)
30 will cause ApacheTop to use more memory and more CPU time. My
31 experimentation finds that remembering no more than around 5000
32 requests works well.
33
34 -q Instructs ApacheTop to keep the querystrings, not remove them.
35
36 -l Instructs ApacheTop to lowercase all URLs, thus /FOO and /foo
37 are treated as the same and accumulate the same statistics.
38
39 -s segments
40 Instructs ApacheTop to only keep the first <segments> parts of
41 the path. Trailing slashes are kept if present. Statistics are
42 then merged for each truncated url.
43
44 -p Instructs ApacheTop to keep the protocol (http:// usually) at
45 the front of its' referrer strings. Normal behaviour is to
46 remove them to give more room to more useful information.
47
48 -r secs
49 Set default refresh delay, in seconds.
50
52 apachetop -f /var/logs/httpd/access.log
53
55 Chris Elsworth <chris@cae.me.uk>
56
58 Report bugs at: https://github.com/tessus/apachetop/issues
59
61 https://www.cae.me.uk/projects/apachetop
62
63
64
65version 0.15.6 June, 2015 apachetop(1)