mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-24 16:53:07 -05:00
syslog-ng: split nginx configuration into conf.d
This commit is contained in:
parent
3682298d01
commit
c9fae6c345
3 changed files with 23 additions and 21 deletions
22
etc/syslog-ng/conf.d/nginx.conf
Normal file
22
etc/syslog-ng/conf.d/nginx.conf
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
source s_nginx_access {
|
||||
unix-dgram("/run/nginx-access-log" group("http") perm(0660));
|
||||
};
|
||||
source s_nginx_error {
|
||||
unix-dgram("/run/nginx-error-log" group("http") perm(0660));
|
||||
};
|
||||
|
||||
destination d_nginx_access {
|
||||
file("/var/log/nginx/access.log" template("${MESSAGE}\n"));
|
||||
};
|
||||
destination d_nginx_error {
|
||||
file("/var/log/nginx/error.log" template("${MESSAGE}\n"));
|
||||
};
|
||||
|
||||
log {
|
||||
source(s_nginx_access);
|
||||
destination(d_nginx_access);
|
||||
};
|
||||
log {
|
||||
source(s_nginx_error);
|
||||
destination(d_nginx_error);
|
||||
};
|
||||
|
|
@ -4,35 +4,15 @@
|
|||
source s_internal {
|
||||
internal();
|
||||
};
|
||||
source s_nginx_access {
|
||||
unix-dgram("/run/nginx-access-log" group("http") perm(0660));
|
||||
};
|
||||
source s_nginx_error {
|
||||
unix-dgram("/run/nginx-error-log" group("http") perm(0660));
|
||||
};
|
||||
|
||||
destination d_journald {
|
||||
unix-dgram("/dev/log");
|
||||
};
|
||||
destination d_nginx_access {
|
||||
file("/var/log/nginx/access.log" template("${MESSAGE}\n"));
|
||||
};
|
||||
destination d_nginx_error {
|
||||
file("/var/log/nginx/error.log" template("${MESSAGE}\n"));
|
||||
};
|
||||
|
||||
log {
|
||||
source(s_internal);
|
||||
destination(d_journald);
|
||||
};
|
||||
log {
|
||||
source(s_nginx_access);
|
||||
destination(d_nginx_access);
|
||||
};
|
||||
log {
|
||||
source(s_nginx_error);
|
||||
destination(d_nginx_error);
|
||||
};
|
||||
|
||||
options {
|
||||
frac-digits(3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue