Commit 81642581d10cb2ccf6e83b00aea4bb9f993119c3
1 parent
a4346cd9
Exists in
syslog
Configuring syslog to send nginx (gitlab,colab,mailman) log files to server
Showing
1 changed file
with
49 additions
and
0 deletions
Show diff stats
cookbooks/rsyslog/templates/host-integration/spb_log.conf.erb
| ... | ... | @@ -49,5 +49,54 @@ $InputFileSeverity 'info' |
| 49 | 49 | $InputFileFacility gitlabshell |
| 50 | 50 | $InputRunFileMonitor |
| 51 | 51 | |
| 52 | +#### Nginx log files | |
| 53 | +# Colab-Nginx logs | |
| 54 | +$InputFileName /var/log/nginx/colab.access.log | |
| 55 | +$InputFileTag nginx-colab-access | |
| 56 | +$InputFileStateFile nginx-colab-accesslog | |
| 57 | +$InputFileSeverity 'access' | |
| 58 | +$InputFileFacility nginxcolabaccess | |
| 59 | +$InputRunFileMonitor | |
| 60 | + | |
| 61 | +# Colab-Nginx error log | |
| 62 | +$InputFileName /var/log/nginx/colab.error.log | |
| 63 | +$InputFileTag nginx-colab-error | |
| 64 | +$InputFileStateFile nginx-colab-errorlog | |
| 65 | +$InputFileSeverity 'error' | |
| 66 | +$InputFileFacility nginxcolaberror | |
| 67 | +$InputRunFileMonitor | |
| 68 | + | |
| 69 | +# Mailman-Nginx logs | |
| 70 | +$InputFileName /var/log/nginx/mailman.access.log | |
| 71 | +$InputFileTag nginx-mailman-access | |
| 72 | +$InputFileStateFile nginx-mailman-accesslog | |
| 73 | +$InputFileSeverity 'access' | |
| 74 | +$InputFileFacility nginxmailmanaccess | |
| 75 | +$InputRunFileMonitor | |
| 76 | + | |
| 77 | +# Mailman-Nginx error log | |
| 78 | +$InputFileName /var/log/nginx/mailman.error.log | |
| 79 | +$InputFileTag nginx-mailman-error | |
| 80 | +$InputFileStateFile nginx-mailman-errorlog | |
| 81 | +$InputFileSeverity 'error' | |
| 82 | +$InputFileFacility nginxmailmanerror | |
| 83 | +$InputRunFileMonitor | |
| 84 | + | |
| 85 | +# Gitlab-Nginx logs | |
| 86 | +$InputFileName /var/log/nginx/gitlab.access.log | |
| 87 | +$InputFileTag nginx-gitlab-access | |
| 88 | +$InputFileStateFile nginx-gitlab-accesslog | |
| 89 | +$InputFileSeverity 'access' | |
| 90 | +$InputFileFacility nginxgitlabaccess | |
| 91 | +$InputRunFileMonitor | |
| 92 | + | |
| 93 | +# Gitlab-Nginx error log | |
| 94 | +$InputFileName /var/log/nginx/gitlab.error.log | |
| 95 | +$InputFileTag nginx-gitlab-error | |
| 96 | +$InputFileStateFile nginx-gitlab-errorlog | |
| 97 | +$InputFileSeverity 'error' | |
| 98 | +$InputFileFacility nginxgitlaberror | |
| 99 | +$InputRunFileMonitor | |
| 100 | + | |
| 52 | 101 | # Sending <%= node.name %> logs |
| 53 | 102 | *.* @@<%= node['peers']['monitor'] %> | ... | ... |