Back to articles
Using GoAccess to View nginx Logs
How-ToTools

Using GoAccess to View nginx Logs

via Dev.toJohn Ajera

Using GoAccess to View nginx Logs GoAccess is a fast terminal and HTML log analyzer for nginx access logs (requests/sec, status codes, top URLs, referrers, user agents). This guide covers installation, optional S3 download, and typical run modes. 1. Overview Install GoAccess (package manager, source, or jdevto/cli-tools script) Optional: sync logs from S3 when they are not on the machine you analyze from Run TUI , HTML report , live tail , or compressed input; use COMBINED or COMMON to match nginx log_format Skip §4 if logs are already on disk. 2. Prerequisites Readable nginx access logs (usually combined or common format) sudo for distro package installs S3 (optional): AWS CLI v2 and s3:GetObject / s3:ListBucket for the prefix you use 3. Install GoAccess Fedora / RHEL / CentOS Stream sudo dnf install -y goaccess Debian / Ubuntu sudo apt update && sudo apt install -y goaccess goaccess --version Newer or custom build: official build instructions . jdevto/cli-tools installer (optional) B

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles