Skip to content

Commit

Permalink
Add additional gitlab log files for rsyslog to input
Browse files Browse the repository at this point in the history
  • Loading branch information
billglick committed Dec 3, 2024
1 parent 25597ef commit eee1e02
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ The goal is that no paramters are required to be set. The default paramters shou

- [ncsa/pam_access](https://github.com/ncsa/puppet-pam_access)
- [ncsa/profile_backup](https://github.com/ncsa/puppet-profile_backup)
- [ncsa/profile_rsyslog](https://github.com/ncsa/puppet-profile_rsyslog)
- [ncsa/sshd](https://github.com/ncsa/puppet-sshd)
- [puppet/gitlab](https://forge.puppet.com/modules/puppet/gitlab)
- [puppet/rsyslog](https://forge.puppet.com/modules/puppet/rsyslog)
Expand Down
60 changes: 60 additions & 0 deletions manifests/syslog.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,42 @@
* => $rsyslog_default_params,
}

rsyslog::component::input { 'gitlab-gitaly':
config => {
facility => 'local0',
file => '/var/log/gitlab/gitaly/current',
severity => 'info',
tag => 'gitlab-gitaly',
},
priority => $rsyslog::input_priority,
type => 'imfile',
* => $rsyslog_default_params,
}

rsyslog::component::input { 'gitlab-pages':
config => {
facility => 'local0',
file => '/var/log/gitlab/gitlab-pages/current',
severity => 'info',
tag => 'gitlab-pages',
},
priority => $rsyslog::input_priority,
type => 'imfile',
* => $rsyslog_default_params,
}

rsyslog::component::input { 'gitlab-registry':
config => {
facility => 'local0',
file => '/var/log/gitlab/registry/current',
severity => 'info',
tag => 'gitlab-registry',
},
priority => $rsyslog::input_priority,
type => 'imfile',
* => $rsyslog_default_params,
}

rsyslog::component::input { 'gitlab-shell':
config => {
facility => 'local0',
Expand All @@ -40,4 +76,28 @@
type => 'imfile',
* => $rsyslog_default_params,
}

rsyslog::component::input { 'gitlab-sidekiq':
config => {
facility => 'local0',
file => '/var/log/gitlab/sidekiq/current',
severity => 'info',
tag => 'gitlab-sidekiq',
},
priority => $rsyslog::input_priority,
type => 'imfile',
* => $rsyslog_default_params,
}

rsyslog::component::input { 'gitlab-workhorse':
config => {
facility => 'local0',
file => '/var/log/gitlab/gitlab-workhorse/current',
severity => 'info',
tag => 'gitlab-workhorse',
},
priority => $rsyslog::input_priority,
type => 'imfile',
* => $rsyslog_default_params,
}
}

0 comments on commit eee1e02

Please sign in to comment.