ljaerj
ljaerj

Reputation: 157

Use aws cloudtrail to collect application logs

Is it possible to use cloud trail to recieve custom logs like application logs, access logs, security logs?

And cloud trail keeps the logs for how long?

Upvotes: 1

Views: 1714

Answers (3)

Manoj
Manoj

Reputation: 2442

You could configure VPC flow logs, CloudTrail logs and AWS Config logs with CloudWatch. You can setup a S3 bucket with lifecycle policies enabled to retain logs forever. Refer this.

Upvotes: 0

James
James

Reputation: 11931

You might be thinking of CloudWatch Logs, which does capture, provide search, and groom custom logs from EC2 instances. The retention grooming rules are configurable.

Upvotes: 3

helloV
helloV

Reputation: 52393

No. CloudTrail is for AWS APIs activity only. It logs the activity for the last 7 days of API activity for supported services. The list only includes API activity for create, modify, and delete API calls. You can optionally save the logs in S3 buckets for historic API activity.

Upvotes: 2

Related Questions