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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南