CloudTrail logs for GitHub self-hosted runner

0

Hi AWS, I have a GitHub self-hosted runner installed (Windows) installed on Amazon EC2. I have noticed that the runner is Offline and when I login into the server I figured out that somebody has deleted the windows service for GitHub runner which is not ideal in a production set up. I know that there is a _diag folder which captures the logs for the runner https://github.com/orgs/community/discussions/25538 but I want to get more details who has deleted the runner. Is there a way that we can figure that out using CloudTrail. Please guide.

profile picture
已提问 5 个月前197 查看次数
1 回答
0

When activity occurs in your AWS account, that activity is recorded in a CloudTrail event. You can view the past 90 days of recorded API activity (management events) in an AWS Region in the CloudTrail console by going to Event history.

Anything that happens on a Windows Server will not be captured by cloudtrail. You will need to review the operating system logs.

profile picture
专家
已回答 5 个月前
  • @Gary Mclean, so you mean to say we need to track such activities though OS logs or we need to implement some kind of Alert mechanism to figure out who stopped the runner service and deleted it which brings the self-hosted runner configured on EC2 in Offline state.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则