install · free to self-host
Install Skald on your own server
There are four ways, and Docker is the fastest: one command starts it with your log mounted read-only, one makes the first owner.
Free to self-host · source-available (Elastic License 2.0) · source on GitHub
- Docker4 commandsneeds Docker
- Docker Compose3 commandsneeds Docker and git
- Install scriptdownload, check, runneeds Debian or Ubuntu, and root
- From sourceclone, install, runneeds git and root; Python 3.11+
[01] before you start
What you need to install Skald
A server, its web server's access log, and Docker or Python. Nothing to compile and no database server to run.
Site on Vercel, Netlify or behind Cloudflare? Skald can take a log drain, a CDN log or the Skald Worker instead (a day read only from a CDN log is withheld until the second count reads CDN logs): see the hosting guide. Rather not run a server at all? Start a 30-day free trial of hosted Skald.
- An access log Skald can readfrom nginx, Apache or Caddy. In Docker it must be readable by group
adm(gid 4), as it is on stock Debian and Ubuntu. - Docker, or Python 3.11 or neweron Debian, Ubuntu or similar. The standard library is enough; the Docker image brings its own Python.
- HTTPS in front, on a remote serverSign-in uses a secure cookie, so plain
http://works only atlocalhost.
[02] pick a way
Four ways to install, from quickest to most hands-on
All four run the same code and keep the same files. Pick one; the commands copy with one click. Every option and fix is in INSTALL.md on GitHub.
Docker, the fastest way
Start it, with your web server's log mounted read-only.
docker run -d --name skald --restart unless-stopped \ -p 127.0.0.1:8080:8080 \ -v /var/log/nginx:/logs:ro \ -v skald-data:/var/lib/skald \ -e SKALD_SITE=example.com \ ghcr.io/spcaeo/skald:2:2follows every 2.x release. To pin this one exactly, useghcr.io/spcaeo/skald:2.62.1.Make the first owner. It prints a link to set your password, valid for 60 minutes.
docker exec -it skald skald accounts init --org "Example Co" --owner-email owner@example.comFill the history from the days your log still holds, then check every part.
docker exec skald skald backfill --days 14 docker exec skald skald doctorNot sure Skald can read your log?
docker exec skald skald try-log /logs/access.logreads its first 500 lines, says which reader fits and why any line fails, and stores nothing.
The container checks each crawler's address against its owner's published list by default (SKALD_VERIFY_BOTS=off stops it), and once mail is set up it sends one summary mail a day at 01:00 to each person who gets security alerts, with what is open on their sites (SKALD_SUMMARY_AT moves it; off stops it).
The whole walk-through, with HTTPS in front and the upgrade, is self-hosted analytics with Docker.
Docker Compose
docker-compose.yml is at the root of the repository. Edit its log path first if your logs are not in /var/log/nginx.
git clone https://github.com/spcaeo/skald && cd skald
docker compose up -d
docker compose exec skald skald accounts init --org "Example Co" --owner-email owner@example.comOn a server with your own domain, let your nginx or Caddy proxy /traffic* to 127.0.0.1:8080 over HTTPS, or start the bundled Caddy, which gets a certificate for you:
SKALD_DOMAIN=stats.example.com docker compose --profile https up -dThe install script, for Debian, Ubuntu and similar
The quick way, pinned to a release. It runs a script from the internet as root, so the safer way below checks it first.
curl -fsSL https://raw.githubusercontent.com/spcaeo/skald/v2.62.1/install.sh | sudo bash -s -- --ref v2.62.1curl -fsSLO https://github.com/spcaeo/skald/releases/download/v2.62.1/skald-2.62.1.tar.gz
curl -fsSLO https://github.com/spcaeo/skald/releases/download/v2.62.1/SHA256SUMS
sha256sum --ignore-missing -c SHA256SUMS
tar -xzf skald-2.62.1.tar.gz && cd skald-2.62.1 && less install.sh && sudo ./install.shsha256sum must print skald-2.62.1.tar.gz: OK. It installs into /opt/skald, with config in /etc/skald and data in /var/lib/skald, and puts the skald command in /usr/local/bin.
From source
git clone https://github.com/spcaeo/skald && cd skald && sudo ./install.shThen the daily run and the live panel come from one command. It runs as the skald user, with /etc/skald/config.yml, so use sudo:
sudo skald check # verify yesterday's figures; store nothing
sudo skald run-daily # check, collect, audit, dashboard, mail (the cron entry)
sudo skald live # "Today so far"; safe every 2 minutes
sudo skald version # brand, version and releaseinstall.sh also writes the cron lines, including the hourly summary-mail --after 01:00 that sends the daily summary mail.
[03] check the download
Make sure the file you downloaded is the one we published
Each release on GitHub has a SHA256SUMS file beside the download. If the hash of your file matches the line in it, the file was not changed on the way.
sha256sum --ignore-missing -c SHA256SUMS does the comparing for you. If you would rather see it, paste both values here. The comparing runs in your browser and nothing is sent anywhere.
Paste both values to compare them.
[04] after the install
Upgrades, and where to get help
Upgrading keeps your history: newer code brings the files up to date in place, after taking a copy.
- Upgrade with DockerTake a backup with
docker exec skald skald backup, thendocker pull ghcr.io/spcaeo/skald:2, remove the old container withdocker rm -f skald, and start it again with the samedocker runcommand. The volume keeps every figure. - Upgrade an install
sudo skald upgradetakes a backup, runs the migrations, checks health and rolls back if it has to. See the upgrade guide. - Stuck?Run
skald doctorfirst. Then ask in Discussions or report a problem. - What changedEvery release in plain words is on what's new; hardening is in SECURITY.md.
Not sure yet? Click around the live demo, read every feature, or see why we built it.
keep reading
More on Install Skald
questions
Install Skald FAQ
Straight answers, including what Skald does not do.
Which Docker tag should I use?
:2. It moves to every 2.x release, fixes and features, but never to a 3.0 that could break something. To stay on one exact release, use its full number in place of :2, as the Docker steps on this page show.
Does Skald need a database server?
No. Its history, accounts and conversions are SQLite files in one data folder, in a Docker volume or in /var/lib/skald.
My site is on Vercel, Netlify or Cloudflare. Can I still use it?
Yes. Skald can take a log drain, a CDN log or the Skald Worker in place of a log file (a day read only from a CDN log is withheld until the second count reads CDN logs). See the hosting guide, or let us run it for you with a 30-day free trial.
$ tail -f access.log | skald
See what AI does with your site. Free for 30 days.
No card. We set up hosted Skald for you within one working day, or you self-host it free. Every line of your log, sorted and added up.