Your First Report
Outcome: GoAccess running over a real log, its dashboard in front of you, and the skill of reading its headline numbers without being fooled by them.
The run
Point GoAccess at a log and name the format. The lab's log is nginx's combined layout, so:
goaccess access.log --log-format=COMBINED
With no output file named, you get the
terminal dashboard: a header of overall
numbers over a stack of panels you can
scroll, expand with Enter, and leave
with q. (The lab, having no terminal
of its own to leave running, captured it
through a pseudo-terminal; transcript
t06-terminal-dashboard.txt keeps the
final frame.)
The headline numbers, checked
The lab log's dashboard header reads:
Total Requests 27 Unique Visitors 5
Valid Requests 27 Requested Files 5
Failed Requests 0 Static Files 4
Log Size 4.40 KiB Not Found 2
Tx. Amount 4.94 KiB
Every one of those can be checked
against the traffic that made the log
(transcript t03-traffic-and-log.txt),
and the guide insists you learn how:
- Total 27, valid 27, failed 0. The traffic script made 26 requests; the 27th line is the smoke-test request from setting the server up. A failed count above zero means lines the parser could not read — chapter 5's subject, and the first number to check on any new log.
- Unique visitors 5. Not five people: five combinations of address, date and user agent. All 27 requests came from one machine; the five are Firefox, Chrome and Safari fingerprints, the Googlebot string, and curl — each counted a "visitor". Hold this lesson: GoAccess counts fingerprints, not people. Two browsers on one machine are two visitors; a household behind one router, sharing a browser version, may be one.
- Requested files 5, static files 4.
Five different pages were asked for
(
/, about, guide, and two more counting the query-string variant separately — read the panel, chapter 6), and four static assets (stylesheet, script, image, robots file). - Not found 2. Two distinct missing URLs — requested three times between them. The not-found panel (chapter 11 turns it into an audit) is often the first genuinely useful panel on a real site: it is your broken links and your typos, ranked.
The panels beneath
Scroll and you will find the requests
panel ranking / first with 9 hits, then
the about and guide pages at 4 each; the
status panel grouping 23 answers as
2xx Success and 4 as 4xx Client
Errors (three 404s and one 405 — the
POST the static server refused); and the
browsers panel reading Firefox 9, Chrome
6, Safari 5, Crawlers 4, Others 3. The
"Crawlers" are the Googlebot-string
requests; "Others" is curl, which
GoAccess declines to call a browser.
Those are the lab's own scripted
fingerprint counts coming back — on a
real log the same panels tell you who
actually visits, and how much of your
traffic was never human at all.
The habit to keep
Run the dashboard first on any new log. Check failed requests before believing anything else, glance at not found and status codes for the site's health, and only then read the popularity rankings. The same run writes files when you ask it to — chapters 6 and 7 — but the dashboard is the fastest sanity check there is, and it costs one command.