Skip to content

Commit

Permalink
Make sure /buildkite/system log group exists
Browse files Browse the repository at this point in the history
  • Loading branch information
lox committed Sep 16, 2018
1 parent 283101a commit 09a53e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packer/conf/bin/bk-install-elastic-stack.sh
Expand Up @@ -117,6 +117,11 @@ LIFECYCLED_SNS_TOPIC=${BUILDKITE_LIFECYCLE_TOPIC}
LIFECYCLED_HANDLER=/usr/local/bin/stop-agent-gracefully
EOF

# make sure that the log group for system is created as it's not awslogs managed
aws logs create-log-group --log-group-name "/buildkite/system" || (
echo "Failed to create log group /buildkite/system"
)

systemctl start lifecycled
systemctl start awslogsd
systemctl start journald-cloudwatch-logs
Expand Down
@@ -1,2 +1,2 @@
state_file = "/var/lib/journald-cloudwatch-logs/state"
log_group = "/buildkite/systemd"
log_group = "/buildkite/system"

0 comments on commit 09a53e7

Please sign in to comment.