You are not logged in.
Pages: 1
Hi everyone,
in Apache, there is a "Piped Logs" feature, which makes it possible to write error and access log files through a pipe to another process, rather than directly to a file; it's configured like this:
CustomLog "|/path/to/script param1" common
Is something like that possible with nginx, too?
If so, how? I could not find a mature technique to do this.
Offline
You could create a named pipe and set nginx to output its logs there.
Offline
I second the above. Nginx does not support piped logs internally (unless it's a relatively new feature). But named pipes would work - just make sure your listener process starts before nginx.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Better late than never: Thank you for our very valuable feedback! Very appreciated! I will either try this or, as a second idea, have rsyslog grab that file and further process through our toolchain.
Offline
Pages: 1