pipelog: NGINX pipelog module
Debian/Ubuntu installation
These docs apply to the APT package nginx-module-pipelog provided by the GetPageSpeed Extras repository.
- Configure the APT repository as described in APT repository setup.
- Install the module:
sudo apt-get update
sudo apt-get install nginx-module-pipelog
Show suites and architectures
| Distro | Suite | Component | Architectures |
|----------|-------------------|-------------|-----------------|
| debian | bookworm | main | amd64, arm64 |
| debian | bookworm-mainline | main | amd64, arm64 |
| debian | trixie | main | amd64, arm64 |
| debian | trixie-mainline | main | amd64, arm64 |
| ubuntu | focal | main | amd64, arm64 |
| ubuntu | focal-mainline | main | amd64, arm64 |
| ubuntu | jammy | main | amd64, arm64 |
| ubuntu | jammy-mainline | main | amd64, arm64 |
| ubuntu | noble | main | amd64, arm64 |
| ubuntu | noble-mainline | main | amd64, arm64 |
This module allows to send HTTP access log to an external program via pipe.
Directives
pipelog_format
pipelog_format name [escape=default|json|none] string ...
- syntax is same as log_format of HttpLogModule.
- default value is combined.
pipelog
pipelog command [format [nonblocking] [if=condition]];
pipelog off;
- default value is off.
- command does not need the pipe symbol
|prefix.
Example
pipelog_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
pipelog "cat >> /var/log/nginx/access.log" main;