Fix syslog facilities
This commit is contained in:
parent
bf5e755c2b
commit
0de4e829c5
3 changed files with 15 additions and 4 deletions
11
README.md
Normal file
11
README.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Ansible Role - Common
|
||||
=====================
|
||||
|
||||
Syslog facilities:
|
||||
|
||||
* `local7` - web servers (Nginx, Apache)
|
||||
|
||||
Syslog tags:
|
||||
|
||||
* `nginx` - Nginx web server
|
||||
* `httpd` - Apache web server
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
CustomLog "| /usr/bin/logger -thttpd -plocal6.info" combined
|
||||
ErrorLog "| /usr/bin/logger -thttpd -plocal6.error"
|
||||
CustomLog "| /usr/bin/logger -plocal7.info -thttpd" combined
|
||||
ErrorLog "| /usr/bin/logger -plocal7.error -thttpd"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
access_log syslog:server=unix:/dev/log,tag=nginx,facility=local7,severity=info;
|
||||
error_log syslog:server=unix:/dev/log,tag=nginx,facility=local7,severity=error;
|
||||
access_log syslog:server=unix:/dev/log,facility=local7,severity=info,tag=nginx;
|
||||
error_log syslog:server=unix:/dev/log,facility=local7,severity=error,tag=nginx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue