summaryrefslogtreecommitdiff
path: root/README.md
blob: faad1645e3642e1815e09247f0c46033068da2e9 (plain)
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
# 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
```