Skip to content

Commit

Permalink
SVCPLAN-6652: Add syslog class to track specific GitLab logs via syslog
Browse files Browse the repository at this point in the history
  • Loading branch information
billglick committed Dec 2, 2024
1 parent c376660 commit cf7c90f
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions manifests/syslog.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,27 @@
include rsyslog

# Define the rsyslog configuration
rsyslog::component::input { 'gitlab-shell':
type => 'imfile',
file => '/var/log/gitlab/gitlab-shell/gitlab-shell.log',
tag => 'gitlab-shell',
severity => 'info',
facility => 'local0',
target => '/etc/rsyslog.d/75_gitlab.conf',
rsyslog::component::input { 'gitlab-access':
config => [
facility => 'local0',
file => '/var/log/gitlab/nginx/gitlab_access.log',
severity => 'info',
],
confdir => $rsyslog::confdir,
tag => 'gitlab-access',
target => '/etc/rsyslog.d/75_gitlab.conf',
type => 'imfile',
}

rsyslog::component::input { 'gitlab-access':
type => 'imfile',
file => '/var/log/gitlab/nginx/gitlab_access.log',
tag => 'gitlab-access',
severity => 'info',
facility => 'local0',
target => '/etc/rsyslog.d/75_gitlab.conf',
rsyslog::component::input { 'gitlab-shell':
config => [
facility => 'local0',
file => '/var/log/gitlab/gitlab-shell/gitlab-shell.log',
severity => 'info',
],
confdir => $rsyslog::confdir,
tag => 'gitlab-shell',
target => '/etc/rsyslog.d/75_gitlab.conf',
type => 'imfile',
}
}

0 comments on commit cf7c90f

Please sign in to comment.