![]() ![]() Create CloudWatch Log Metric Filters to convert the log event into metric data.Install and configure the CloudWatch agent so the log file will be ingested into CloudWatch Logs.Ĭreate a notification when the service is not running.Use AWS Systems Manager to create the scheduled task on the desired Amazon EC2 instances.Script 2: Creates a scheduled task to run script 1 on a regular basis.Script 1: Captures the service status and write to a log file.Customer is not versed in writing code, but does have experience with PowerShell.īased on our design requirements, we chose the following solution:Ĭreate the service status data on the Amazon EC2 instance.Easy to configure for many servers, and different services.Regular heartbeats allow the current status to be known, and visualized.Start/stop event signals cannot capture when the server is unable to send data to CloudWatch, so could miss a catastrophic failure.The solution for monitoring a Windows service status was expected to meet the following: Please note that the AWS CloudFormation template and resources created are not intended for production use, but merely as an example.Īt the end of this post we’ll discuss some ideas for further work, and some other possibilities that may be useful for your situation. We also share an AWS CloudFormation template which you can use to deploy the resources described in this post. We’ll use this data to create a CloudWatch alarm to send an email notification when the service is not running. This post presents a solution for gathering this data from a Windows Amazon Elastic Compute Cloud (Amazon EC2) instance, utilizing a scheduled task to obtain regular heartbeat data on the service status, and sending this to Amazon CloudWatch. This service status data can be displayed on dashboards, used to create alarms, or used to trigger automated resolutions. When you have an application that relies on a specific Windows service being up and running, knowing the status of this service can be a useful part of your observability solution. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |