Traffic
The Traffic section is a quick analysis of the most recent requests that reached Neti, read from the access logs of nginx: how fast requests are arriving, how many ended in an error, which addresses and which countries send the most. It answers questions such as "is someone hammering us right now?" and "where does our traffic come from?". The page is titled Traffic monitoring. To read the single requests use Logs; to act on an address use Security.
Where: menu Traffic. Permission: Traffic monitoring
(view.traffic; Viewer, Operator and Admin roles). The page is read-only: there is nothing to
configure.

What is analyzed
Each time the page is opened Neti reads the last 6,000 lines of each nginx access log in
/var/log/nginx/: access.log, where the requests to all the published services are written,
and neti_access.log, the log of the console. It then counts them. Next to the title you
see how many requests were analyzed. So the numbers describe the most recent requests, not a fixed
period of time: on a busy server they cover the last minutes, on a quiet one several hours or days. Reload the page to
update them.
All the services are counted together, with the requests to the console. Requests dropped by the firewall before reaching nginx (banned addresses, for example) are not in the logs and are not counted.
If there is no log file the page shows No nginx logs in /var/log/nginx/. and the subtitle no logs: this is normal right after installation, before any request has arrived.
Tiles
- Requests / minute
- How many of the analyzed requests arrived in the last 60 seconds: the current pace of the traffic.
- 4xx errors
- Requests answered with a status from 400 to 499 among those analyzed: not found (404), not authorized or forbidden (401, 403), too many requests (429)… Some are normal. Many 401, 403 or 404 from few addresses usually mean automated scanners looking for pages that do not exist.
- 5xx errors
- Requests answered with a status of 500 or more: errors of Neti or, far more often, of a backend that does not answer (502, 504) or fails (500). If the number grows, check the backends in Probes and the error log of the site in Logs.
Top IPs
The 12 addresses with the most requests among those analyzed.
- IP
- The address of the visitor as written in the log.
- Country
- Flag and two-letter code of the country, from the GeoIP database;
??when it is unknown or the GeoIP component is not installed (see Server → Components). - Requests
- How many of the analyzed requests came from that address.
An address you do not recognize with a very large share of the requests deserves a look: search for it in Logs to see what it asks for, and block it from Security if needed. The Dashboard lists the suspicious addresses with a Block button.
By country
The distribution of the requests by country, up to 12 countries, most active first.
- Country
- Flag and code;
??groups the addresses whose country is unknown. - Requests
- Requests from that country. To keep the page fast, only the 60 most active addresses are looked up: the table shows where the bulk of the traffic comes from, not an exact count of every request.
Compare it with where your users are. If most of the traffic comes from countries where you have no users, consider a country rule in the filtering profile of the service.
Good to know
- Behind the Cloudflare proxy the logs contain the real address of the visitor, not the address of Cloudflare.
- The page reads the current log files only; older, rotated logs are not included. The per-site logs shown in Logs are separate files with more detail for each request.
- The Dashboard shows a shorter version of the same analysis (requests per minute, requests by status, countries), on the last 1,500 lines of each log.