Commit a4346cd96107e5d7c50b31f0eb6a226691822bea
1 parent
81cb9543
Exists in
syslog
Adding configurations on syslog to send nginx noosfero log files to server
Showing
1 changed file
with
20 additions
and
1 deletions
Show diff stats
cookbooks/rsyslog/templates/host-social/spb_log.conf.erb
1 | +# TODO: configure nginx to send logs to syslog directly | ||
2 | +# Configuration to forward Nginx | ||
3 | + | ||
4 | +# Noosfero-Nginx access log | ||
5 | +$InputFileName /var/log/nginx/noosfero.access.log | ||
6 | +$InputFileTag nginx-noosfero-access | ||
7 | +$InputFileStateFile nginx-noosfero-accesslog | ||
8 | +$InputFileSeverity 'access' | ||
9 | +$InputFileFacility nginxnoosferoaccess | ||
10 | +$InputRunFileMonitor | ||
11 | + | ||
12 | +# Noosfero-Nginx error log | ||
13 | +$InputFileName /var/log/nginx/noosfero.error.log | ||
14 | +$InputFileTag nginx-noosfero-error | ||
15 | +$InputFileStateFile nginx-noosfero-errorlog | ||
16 | +$InputFileSeverity 'error' | ||
17 | +$InputFileFacility nginxnoosferoerror | ||
18 | +$InputRunFileMonitor | ||
19 | + | ||
1 | # Sending <%= node.name %> logs | 20 | # Sending <%= node.name %> logs |
2 | -*.* @@<%= node['peers']['monitor'] %> | ||
3 | \ No newline at end of file | 21 | \ No newline at end of file |
22 | +*.* @@<%= node['peers']['monitor'] %> |