CloudWatch Logs Flashcards

1
Q

What is Amazon CloudWatch Logs?

A

Amazon CloudWatch Logs is a service that allows you to monitor, store, and access your log files from Amazon EC2 instances, AWS CloudTrail, Route 53, and other sources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can CloudWatch Logs help in system monitoring?

A

CloudWatch Logs can help in system monitoring by enabling the collection and analysis of log data, setting alarms based on specific log events, and providing a central place to manage log data across your AWS infrastructure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some common use cases for CloudWatch Logs?

A

Common use cases include real-time application and system monitoring, log file storage and archiving, and setting alarms for specific log events or patterns to aid in troubleshooting and operational analysis.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does log data get into CloudWatch Logs?

A

Log data can be sent to CloudWatch Logs via the CloudWatch Logs Agent, AWS SDKs, or the CloudWatch Logs API. There are also built-in integrations with various AWS services to directly publish log data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the role of Log Groups and Log Streams in CloudWatch Logs?

A

In CloudWatch Logs, a Log Group is a container for log data, typically representing an application or a component of an application. A Log Stream is a sequence of log events that share the same source within a Log Group.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Can CloudWatch Logs trigger alarms or notifications?

A

Yes, CloudWatch Logs can trigger alarms or notifications based on metric filters that match specific log events, allowing you to respond to operational issues promptly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the benefit of integrating CloudWatch Logs with CloudWatch Metrics?

A

Integrating CloudWatch Logs with CloudWatch Metrics allows you to create custom metrics from your log data. You can then use these metrics to create alarms and visualize log data through CloudWatch dashboards.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does CloudWatch Logs handle log retention?

A

CloudWatch Logs allows you to specify retention policies for each Log Group, enabling automatic deletion of old log data after a defined period, ranging from one day to indefinitely.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Can CloudWatch Logs be integrated with other AWS services?

A

Yes, CloudWatch Logs can be integrated with other AWS services such as Amazon CloudWatch Alarms, Amazon Kinesis for real-time log processing, and AWS Lambda for custom log processing and analysis.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the costs associated with CloudWatch Logs?

A

Costs for CloudWatch Logs are based on the amount of log data ingested, stored, and, optionally, the use of CloudWatch Logs Insights for log analysis. There is also a free tier covering certain usage quantities.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly