Skip to content

Commit

Permalink
fixup! [u] Send GitLab host logs to CloudWatch (#3894)
Browse files Browse the repository at this point in the history
  • Loading branch information
achave11-ucsc committed May 23, 2023
1 parent 53526c9 commit 1fa4507
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions terraform/gitlab/gitlab.tf.json.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -1560,14 +1560,23 @@ def qq(*words):
{
'file_path': path,
'log_group_name': '/aws/cwagent/azul-gitlab',
'log_stream_name':
path
if not path.endswith('*.log')
else
path.replace('*', 'reconfigure')
'log_stream_name': path.replace('*', '?')
}
for path in
[
f'/var/log/{file}'
for file in
[
'amazon/ssm/amazon-ssm-agent.log',
'audit/audit.log',
'cloud-init.log',
'cron',
'maillog',
'messages',
'secure'
]

] + [
f'/mnt/gitlab/logs/{file}.log'
for file in
[
Expand Down Expand Up @@ -1601,18 +1610,6 @@ def qq(*words):
'production',
'sidekiq_client'
]
] + [
f'/var/log/{file}'
for file in
[
'amazon/ssm/amazon-ssm-agent.log',
'audit/audit.log',
'cloud-init.log',
'cron',
'maillog',
'messages',
'secure'
]
]
]
}
Expand Down

0 comments on commit 1fa4507

Please sign in to comment.