Commit ec3135fb9623337e6a8622724d41fa0fdbc9044b
1 parent
81642581
Exists in
syslog
Configuring syslog to send nginx logs from reverseproxy to server
Showing
1 changed file
with
34 additions
and
1 deletions
Show diff stats
cookbooks/rsyslog/templates/host-reverseproxy/spb_log.conf.erb
| 1 | +#### Nginx log files | |
| 2 | +# SSL-SoftwarePublico-Nginx logs | |
| 3 | +$InputFileName /var/log/nginx/ssl-softwarepublico.dev.access.log | |
| 4 | +$InputFileTag nginx-spb-access | |
| 5 | +$InputFileStateFile nginx-spb-accesslog | |
| 6 | +$InputFileSeverity 'access' | |
| 7 | +$InputFileFacility nginxspbaccess | |
| 8 | +$InputRunFileMonitor | |
| 9 | + | |
| 10 | +# SSL-SoftwarePublico-Nginx error log | |
| 11 | +$InputFileName /var/log/nginx/ssl-softwarepublico.dev.error.log | |
| 12 | +$InputFileTag nginx-spb-error | |
| 13 | +$InputFileStateFile nginx-spb-errorlog | |
| 14 | +$InputFileSeverity 'error' | |
| 15 | +$InputFileFacility nginxspberror | |
| 16 | +$InputRunFileMonitor | |
| 17 | + | |
| 18 | +# SSL-List-SoftwarePublico-Nginx logs | |
| 19 | +$InputFileName /var/log/nginx/ssl-listas-softwarepublico.dev.access.log | |
| 20 | +$InputFileTag nginx-lista-spb-access | |
| 21 | +$InputFileStateFile nginx-lista-spb-accesslog | |
| 22 | +$InputFileSeverity 'access' | |
| 23 | +$InputFileFacility nginxlistasspbaccess | |
| 24 | +$InputRunFileMonitor | |
| 25 | + | |
| 26 | +# SSL-SoftwarePublico-Nginx error log | |
| 27 | +$InputFileName /var/log/nginx/ssl-listas-softwarepublico.dev.error.log | |
| 28 | +$InputFileTag nginx-listas-spb-error | |
| 29 | +$InputFileStateFile nginx-listas-spb-errorlog | |
| 30 | +$InputFileSeverity 'error' | |
| 31 | +$InputFileFacility nginxlistasspberror | |
| 32 | +$InputRunFileMonitor | |
| 33 | + | |
| 1 | 34 | # Sending <%= node.name %> logs |
| 2 | -*.* @@<%= node['peers']['monitor'] %> | |
| 3 | 35 | \ No newline at end of file |
| 36 | +*.* @@<%= node['peers']['monitor'] %> | ... | ... |