LOGSWAN(1)
π¦’ NAME
okay bestie, meet logswan β she's a fast Web log analyzer that runs on probabilistic data structures β¨ like she's literally that girl.
π SYNOPSIS
logswan [-ghv] [-d db] logfile
π DESCRIPTION
So logswan is a fast Web log analyzer using probabilistic data structures, and no I'm not being dramatic, that's literally what she is π
. She's built for very large log files, like typically APIs logs β the kind of file that makes other tools start sweating π.
Here's the iconic part: her memory usage is constant no matter how big the log file is π«Ά. Doesn't matter if the log is 10MB or 10TB, she's not out here gobbling RAM. She takes approximatively 4MB of RAM. That's it. That's the whole budget. Queen behavior π.
Counting unique visitors? She does that with two HyperLogLog counters β one for IPv4, and another one for IPv6 β and that gives a relative accuracy of 0.10% πΈ. Probabilistic, but make it precise.
Oh and btw, if file is a single dash (`-`), logswan reads from the standard input β¨. Very demure, very stdin-pilled.
The options are as follows:
-ddb β Specify path to a GeoIP database.-gβ Enable GeoIP lookups.-hβ Display usage.-vβ Display version.
π EXAMPLES
okay so here's a lil script that processes all log files in the current directory and saves the output in a file β it's giving automation, it's giving efficiency, it ate π₯:
#!/bin/sh
for file in $(ls *.log)
do
logswan $file > $file.json
done
exit 0
π AUTHORS
logswan was written by Frederic Cambus. shoutout to the dev fr fr π«Ά
π reminder bestie: this page is the Debian build from February 13, 2026. mwah, go analyze some logs, you got this πβ¨π¦πΈπ
π¦ where this page comes from
- ubuntu stonking: logswan 2.1.16-2 Β· BSD-2-Clause
- Copyright (c) 2015-2026, Frederic Cambus
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms