Commit 81cb9543ed8c3fa1b040224e8e52fa2ae5e92f9c
1 parent
31314bf0
Exists in
syslog
Config integration syslog to send gilabs log files to server
Showing
1 changed file
with
52 additions
and
1 deletions
Show diff stats
cookbooks/rsyslog/templates/host-integration/spb_log.conf.erb
| 1 | +# TODO: configure gitlab to send logs to syslog directly | |
| 2 | +# Configuration to forward GitLab logs | |
| 3 | +$ModLoad imfile | |
| 4 | +# Unicor Error | |
| 5 | +$InputFileName /var/log/gitlab/unicorn.stderr.log | |
| 6 | +$InputFileTag gitlab-unicorerr | |
| 7 | +$InputFileStateFile gitlab-unicor | |
| 8 | +$InputFileSeverity 'error' | |
| 9 | +$InputFileFacility gitlabunicorerr | |
| 10 | +$InputRunFileMonitor | |
| 11 | + | |
| 12 | +# Unicor Out | |
| 13 | +$InputFileName /var/log/gitlab/unicorn.stdout.log | |
| 14 | +$InputFileTag gitlab-unicorout | |
| 15 | +$InputFileStateFile gitlab-unicoroutlog | |
| 16 | +$InputFileSeverity 'info' | |
| 17 | +$InputFileFacility gitlabunicorout | |
| 18 | +$InputRunFileMonitor | |
| 19 | + | |
| 20 | +# Applications log | |
| 21 | +$InputFileName /var/log/gitlab/application.log | |
| 22 | +$InputFileTag gitlab-app | |
| 23 | +$InputFileStateFile gitlab-applog | |
| 24 | +$InputFileSeverity 'info' | |
| 25 | +$InputFileFacility gitlabapp | |
| 26 | +$InputRunFileMonitor | |
| 27 | + | |
| 28 | +# Production logs | |
| 29 | +$InputFileName /var/log/gitlab/production.log | |
| 30 | +$InputFileTag gitlab-prod | |
| 31 | +$InputFileStateFile gitlab-prodlog | |
| 32 | +$InputFileSeverity 'info' | |
| 33 | +$InputFileFacility gitlabprod | |
| 34 | +$InputRunFileMonitor | |
| 35 | + | |
| 36 | +# Sidekiq logs | |
| 37 | +$InputFileName /var/log/gitlab/sidekiq.log | |
| 38 | +$InputFileTag gitlab-sidekiq | |
| 39 | +$InputFileStateFile gitlab-sidekiqlog | |
| 40 | +$InputFileSeverity 'info' | |
| 41 | +$InputFileFacility gitlabsidekiq | |
| 42 | +$InputRunFileMonitor | |
| 43 | + | |
| 44 | +# Shell logs | |
| 45 | +$InputFileName /var/log/gitlab-shell/gitlab-shell.log | |
| 46 | +$InputFileTag gitlab-shell | |
| 47 | +$InputFileStateFile gitlab-shelllog | |
| 48 | +$InputFileSeverity 'info' | |
| 49 | +$InputFileFacility gitlabshell | |
| 50 | +$InputRunFileMonitor | |
| 51 | + | |
| 1 | 52 | # Sending <%= node.name %> logs |
| 2 | -*.* @@<%= node['peers']['monitor'] %> | |
| 3 | 53 | \ No newline at end of file |
| 54 | +*.* @@<%= node['peers']['monitor'] %> | ... | ... |