diff options
| author | Paul Buetow <paul@buetow.org> | 2024-12-04 23:05:18 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-12-04 23:05:18 +0200 |
| commit | ddb5fe3fddef734a6cd99c476ab5ae1d16413b06 (patch) | |
| tree | bac063d8c9395cff1bd427cde66f9ef93eaa7933 /README.md | |
| parent | 180ea1c7564e7734fb509f6b81f5b42a0dfcaacf (diff) | |
some docs
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -1,3 +1,32 @@ # foostats Small Perl script reporting anonymous site stats for my foo.zone web and gemini capsule running on OpenBSD using `httpd` webserver and `relayd`, `inetd` + `vger` for Gemini. +## Installation + +On OpenBSD, install dependencies: + +```sh +doas pkg_add p5-Digest-SHA3 p5-PerlIO-gzip p5-JSON +``` + +## Usage + +To parse the logs, run: + +```sh +doas perl foostats.pl --parse-logs +``` + +Note, expected are the logs in OpenBSD's "forwarded" format (see `httpd.conf(5)`). + +To fetch logs from partner server, run: + +```sh +doas perl foostats.pl --replicate +``` + +To pretty print the (merged) logs, run: + +```sh +doas perl foostats.pl --pretty-print +``` |
