Questions tagged [cloudwatch]
66 questions
45
votes
1 answer
cron expression in AWS CloudWatch: How to run once a week
In Amazon AWS CloudWatch it is possible to run a rule according to a schedule that is defined in a cron expression.
The rules for this are outlined here.
After some trying around, I wasn't able to compose an expression that will run once a week…

mxro
- 6,588
- 4
- 35
- 38
13
votes
3 answers
CloudWatch Logs Filter case insensitive multiple terms or connected
I'm just trying to create an alarm based on CloudWatch Logs Filter which triggers on multiple terms (or connected, not and) and is case insensitive
Using "error warning" as pattern is not working
I'm looking for filter pattern reacting to all of the…

Manuel
- 9,112
- 13
- 70
- 110
10
votes
4 answers
CloudWatch logs acting weird
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 =…

Furhan S.
- 1,494
- 2
- 13
- 22
9
votes
3 answers
Can AWS Cloudwatch alarms detect no activity?
I want to set up cloud watch alarms to fire when there is no activity, for example, to fire a cloud watch alarm when a Lambda function does NOT execute for at least 5 minutes.
I set up a simple test lambda function (testLambdaFunc), and then set up…

Darren
- 1,417
- 13
- 23
6
votes
1 answer
Cloudwatch default metrics EC2 DiskReadOps and DiskWriteOps not reporting
AWS EC2 instances by default include DiskReadOps and DiskWriteOps metric for attached EBS volumes. I have checked multiple running EC2 Instances running both Windows and Linux and they all display no value data other then 0.
See…

Peter
- 333
- 2
- 9
5
votes
1 answer
AWS CloudWatch: EndpointConnectionError: Could not connect to the endpoint URL
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,…

gigawatts
- 319
- 2
- 5
- 15
5
votes
1 answer
What does the AWS CloudWatch metric RequestCount mean?
I'm trying to figure out the meaning of the AWS CloudWatch metric RequestCount. The only documentation I can find says The number of requests handled by the load balancer, which is remarkably unhelpful:
Is this a total count or some sort of rate?…

stickfigure
- 13,458
- 5
- 34
- 50
4
votes
1 answer
Aws cloudwatch get.metrics with more than one dimension
I'm trying to use the command aws cloudwatch get-metrics to obtain "DiskSpaceUtilization" but the result is empty..
"Datapoints": [],
"Label": "DiskSpaceUtilization"
I noticed that if I use
aws cloudwatch list-metrics --namespace mymetric
the…

albruz90
- 135
- 9
4
votes
3 answers
How do I write a custom event string to Aws cloudwatch logs
I have spent hours digging through Aws documentation, and I cannot find a c# 'hello world' type sample showing how to programmatically write something simple (like a string or something similar) to Aws cloud watch logs. Perhaps I am not looking in…

Roger Hill
- 3,677
- 1
- 34
- 38
4
votes
1 answer
AWS Cloudwatch set up WebHook
I am having trouble in defining a webhook on AWS CloudWatch(I am new to this technology). I checked out a lot of forums but I could not find out the right answer. Basically, what I need is a webhook or a similar way for sending an alert from…

Andrei Suciu
- 53
- 1
- 3
4
votes
2 answers
Amazon cloudwatch metric filter by instance name
I'm trying to make an alarm to cpu usage for instances, some instances are regular ec2 and some are made in autoscaling.
I'm looking for some kind of metric/dimension that can filter instances by tag : Name.
Is it possible, if yes than how? if no,…

orgar
- 41
- 1
- 2
3
votes
3 answers
Use Nlog for CloudwatchLog
I need a detailed/step by step guide for this. I have read the brief guide (example here) and downloaded the sample code, but I still can't figure out how to use Nlog to log to CloudWatch.
As soon as I put in the target in NLog.config, ,…

RockFish
- 31
- 1
- 5
3
votes
1 answer
Wrong event time in CloudWatch log events
Found the solution after searching, but leaving this here if somebody happens to run into similar kind of confusion. See resolution in the end.
I'm trying to figure out why AWS CloudWatch log service fails to understand the right timestamp for my…

Michikawa
- 123
- 1
- 7
2
votes
1 answer
how to add ip address to log stream name in cloudwatch
While i try to set up cloudwatch in one of my servers , i cannot get my server ip address append the log stream name.
For example : IP-ADDR_myapplicationlog.
To achieve the above i tried {ip_address}_myapplicationlog , but this returns 127.0.1.1…

akhila
- 720
- 2
- 7
- 17
2
votes
1 answer
Where to put timestamp in JSON log
I'm writing a custom application that outputs logs in JSON format, one line per log in the output file. I want to get these logs into both AWS CloudWatch and Splunk for analysis. My question is what is the standard place to put the timestamp in…

Duncan Archer
- 21
- 4