cloudwatch

LWP::Protocol::https::Socket: connect: timeout error

对着背影说爱祢 提交于 2019-12-13 08:05:46
问题 I am trying to configure aws cloudwatch script for monitoring memory etc. While executing the script we get below error and I upgraded the perl package the LWP version is also latest as 6 but still script is failing with below error. I tried setting env variables as PERL_LWP_ENV_PROXY=1 and PERL_LWP_SSL_VERIFY_HOSTNAME=0 but still failing. Please help on this. [ec2-user@ip-10-175-82-195 aws-scripts-mon]$ sudo ./mon-put-instance-data.pl --mem-util --mem-used --mem-avail --aws-credential-file=.

AWS CloudWatch: EndpointConnectionError: Could not connect to the endpoint URL

时光毁灭记忆、已成空白 提交于 2019-12-06 03:57:32
问题 I just followed these instructions (Link) to get AWS CloudWatch installed on my EC2 instance. I updated my repositories: sudo yum update -y I installed the awslogs package: sudo yum install -y awslogs I edited the /etc/awslogs/awscli.conf, confirming that my AZ is us-west-2b on the EC2 page I left the default condiguration of the /etc/awslogs/awslogs.conf file as is, confirming that the default path indeed has logs being written to it I checked the /var/log/awslogs.log file and it is

CloudWatch logs acting weird

只愿长相守 提交于 2019-12-03 10:35:21
问题 I have two log files with multi-line log statements. Both of them have same datetime format at the begining of each log statement. The configuration looks like this: state_file = /var/lib/awslogs/agent-state [/opt/logdir/log1.0] datetime_format = %Y-%m-%d %H:%M:%S file = /opt/logdir/log1.0 log_stream_name = /opt/logdir/logs/log1.0 initial_position = start_of_file multi_line_start_pattern = {datetime_format} log_group_name = my.log.group [/opt/logdir/log2-console.log] datetime_format = %Y-%m-

CloudWatch logs acting weird

回眸只為那壹抹淺笑 提交于 2019-12-03 00:03:53
I have two log files with multi-line log statements. Both of them have same datetime format at the begining of each log statement. The configuration looks like this: state_file = /var/lib/awslogs/agent-state [/opt/logdir/log1.0] datetime_format = %Y-%m-%d %H:%M:%S file = /opt/logdir/log1.0 log_stream_name = /opt/logdir/logs/log1.0 initial_position = start_of_file multi_line_start_pattern = {datetime_format} log_group_name = my.log.group [/opt/logdir/log2-console.log] datetime_format = %Y-%m-%d %H:%M:%S file = /opt/logdir/log2-console.log log_stream_name = /opt/logdir/log2-console.log initial