nora

Understand the traffic in your existing NGINX logs.

Read your access logs and get a local report of requests, errors, busy pages and traffic by hour. View it in the terminal or use JSON in your own scripts.

Open source under 0BSD.

What it does

Files, pipes and SSH

Analyze a local file, standard input or a remote log using your existing SSH access. The log is read and counted on your machine.

Traffic reports

Review request counts, response bytes, status codes, methods, top paths, clients, referrers, user agents and hourly traffic.

Readable and structured output

Choose terminal text or JSON. Filter the time window, set the number of top results and optionally mask client IP addresses.

Build and install

Use the Go toolchain declared in the repository’s go.mod, with Make and the installer prerequisites in the README. Run these commands from a fresh clone:

git clone https://github.com/Starlit-Digital/nora.git
cd nora
make build

make build installs the native CLI into ~/.local/bin. Put that directory before Homebrew on PATH. Use make compile for a build that leaves installed tools unchanged. Read the README for supporting assets and platform requirements.

Examples

Read a local log

Use a log you have permission to read. The SSH example uses your own SSH setup and existing access permissions.

Files and standard input

nora analyze access.log --top 20
nora analyze access.log --format json --anonymize-ip
cat access.log | nora analyze -

Optional remote log

nora analyze /var/log/nginx/access.log --ssh-host your-server

In the terminal

nora command output in a macOS terminal frame.
Actual command output, shown in a macOS terminal frame. Check the README for current commands and tested platforms.

What to know before using it

nora supports common and combined access logs. Custom formats may need changes. It counts unreadable lines and reports an error if it cannot read any records. It does not look up host names or locations. Hiding IP addresses does not remove private details from paths, referring pages or browser information. A request count is not a count of people.

Releases and verification

Check the release page for downloads and instructions to verify them. The README explains the current source and tested platforms.

View releases · Build and test results

Instructions and help

Help is welcome

You can help with examples, bug reports, tests or clearer instructions. Use made up sample data. Do not share private code, passwords, customer details or logs.