Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions ngxtop/ngxtop.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@
-i <filter-expression>, --filter <filter-expression> filter in, records satisfied given expression are processed.
-p <filter-expression>, --pre-filter <filter-expression> in-filter expression to check in pre-parsing phase.

Variables:
Depending on your log format, the following variables are generally available for filtering, grouping and printing.

remote_addr Client ip-address
remote_user Client username for basic http auth
time_local Request timestamp
request Http method and path
status Http response code
body_bytes_sent Response size in bytes
http_referer Client referer url
http_user_agent Client browser name
http_x_forwarded_for Client ip-address when proxied

Examples:
All examples read nginx config file for access log location and format.
If you want to specify the access log file and / or log format, use the -f and -a options.
Expand Down