How allinurl/goaccess works
GoAccess is a real-time web-log analyzer with terminal and browser-based reporting. The principal workflow is to configure log interpretation, parse incoming access-log records, aggregate traffic metrics, and present the resulting panels or reports. Its documented capabilities also include incremental on-disk persistence, GeoIP enrichment, and authenticated live WebSocket reporting. The source index identifies the main runtime modules, but excerpts do not expose every call site; documented links are used for the broader workflow, and uncertain internal dispatches are omitted.
Main entry points: goaccess.c Application entry · gstorage.c Metric aggregation · parser.c Log parser · gholder.c Panel data
Components 22
Ingestion and configuration
- Application entry
src/goaccess.c - Options and formats
src/options.c - Log parser
src/parser.c - Log input
src/fileio.c - Campaign tracking
src/utm.c
Analysis and state
- Browser classification
src/browsers.c - GeoIP enrichment
src/geolocation.c - Metric aggregation
src/gstorage.c - Hash storage
src/gkhash.c - Panel data
src/gholder.c - Disk persistence
src/persistence.c
Reports and interfaces
- Terminal dashboard
src/ui.c - HTML dashboard
src/gdashboard.c - Dashboard charts
src/gchart.c - Report output
src/output.c - CSV reports
src/csv.c - JSON reports
src/json.c
Live delivery and security
- WebSocket server
src/websocket.c - JWT authentication
src/wsauth.c
Other components
- Operator
- Web logs
- Browser viewer
Connections 20
- Operator → Application entry: runs
- Web logs → Log parser: provides logs
- Application entry → Options and formats: configures
src/goaccess.c - Application entry → Log parser: starts parsing
- Log parser → Metric aggregation: records metrics
- Log parser → Campaign tracking: extracts campaigns
- Metric aggregation → Hash storage: aggregates in
src/gstorage.c - Metric aggregation → Browser classification: classifies traffic
- Metric aggregation → GeoIP enrichment: enriches traffic
- Hash storage → Disk persistence: persists data
src/gkhash.c - Metric aggregation → Panel data: supplies metrics
- Panel data → Terminal dashboard: renders panels
- Panel data → HTML dashboard: renders panels
- HTML dashboard → Dashboard charts: uses charts
- Application entry → Report output: generates reports
- Report output → CSV reports: writes CSV
- Report output → JSON reports: writes JSON
- Application entry → WebSocket server: serves live reports
- WebSocket server → JWT authentication: verifies tokens
- WebSocket server → Browser viewer: streams dashboard