GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LOGSWAN(1) FreeBSD General Commands Manual LOGSWAN(1)

logswan
fast Web log analyzer using probabilistic data structures

logswan [-ghv] [-d db] logfile

logswan is a fast Web log analyzer using probabilistic data structures. It is targeted at very large log files, typically APIs logs. It has constant memory usage regardless of the log file size, and takes approximatively 4MB of RAM.

Unique visitors counting is performed using two HyperLogLog counters (one for IPv4, and another one for IPv6), providing a relative accuracy of 0.10%.

If file is a single dash (`-'), logswan reads from the standard input.

The options are as follows:

db
Specify path to a GeoIP database.
Enable GeoIP lookups.
Display usage.
Display version.

The following script can be used to process all log files in the current directory and save the output in a file:
#!/bin/sh
for file in $(ls *.log)
do
	logswan $file > $file.json
done
exit 0

logswan was written by Frederic Cambus.
February 13, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.