forked from tommyrot/superseriousstats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MANUAL
38 lines (29 loc) · 1.48 KB
/
MANUAL
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
Usage: php sss.php [-q | -v] [-c config] [-i <logfile or directory>] [-o html]
php sss.php [-q | -v] [-c config] [-e target]
php sss.php [-q | -v] [-c config] [-m source]
Options:
-c <file>
Read settings from <file>. By default "sss.conf" is read.
-e <file>
Export all user relations in the database to <file>.
-i <file|directory>
Parse a single logfile <file> or all logfiles in <directory>.
Gzipped logfiles with the ".gz" extension will be processed by
the parser. After the last logfile has been parsed, database
maintenance will commence to ensure a usable dataset.
-m <file>
Import user relations from <file> into the database. Existing
relations will be unset prior to any updates made. It is highly
recommended to keep an export as backup. Nicks contained in
<file> are treated as case insensitive and nicks which don't
exist in the database will be ignored.
-o <file>
Generate statistics and output to <file>.
-q
Quiet mode. Output only errors.
-v
Verbose mode. Useful to see parser issues if any.
Examples:
Parse all logfiles found in "~/irclogs/foobar/" and create a stats
page named "/var/www/foobar.html":
$ php sss.php -i ~/irclogs/foobar/ -o /var/www/foobar.html