This is the shortest path from a fresh machine to a working local GLog server.
curl -fsSL https://raw.githubusercontent.com/dotcommander/glog/main/scripts/install.sh | sh
glog doctorIf the installer says the install directory is not on PATH, run the export PATH=...
line it prints, then run glog doctor again.
glog serveOpen http://localhost:6016 for the dashboard.
If you are running from a source checkout and have just installed, this also
builds the dashboard first:
just serveIn another terminal:
glog host register --server http://localhost:6016 --name my-machineThis writes ./glog.json with the server URL and API key. Future glog log
commands use that file automatically.
glog log "hello from glog" --field source=first-runglog doctor
curl http://localhost:6016/healthCommon first-run fixes:
glog: command not found: add the install directory printed by the installer toPATH.Config: missing: runglog host register --server http://localhost:6016 --name my-machine.Server: unreachable: start the server withglog serve, or pass the right URL with--server.
From a source checkout, the easiest path is the Justfile:
just service-install
just service-status
just healthThis installs a macOS launchd user agent named dev.glog that:
- runs
~/go/bin/glog serve(the installed glog binary) - serves the dashboard from
web/build - stores the database at
./glog.db - restarts automatically with
KeepAlive - starts automatically at login with
RunAtLoad
Useful service commands:
just service-restart
just service-logs
just service-uninstallOverride the listen address for local testing:
GLOG_ADDR=127.0.0.1:6020 just service-install