Configure Log Sources for Amazon Web Services (AWS)
Alert Logic supports the following log source types for AWS deployments:
- AWS CloudTrail logs—Log messages generated by the AWS CloudTrail service that record AWS API activity in your account
- AWS S3 logs—Log records that provide details about a single access request, such as the requester, bucket name, request time, request action, response status, and any error codes
For more information about other log source types, see Configure Log Sources for All Deployments or Configure Log Sources for Microsoft Azure.
After you provision and install the Alert Logic agent on your target host, the agent automatically creates an associated log source in the Alert Logic console and configures it with the default collection configuration policy for that log source type. You must create and configure new collection sources with existing collection policies to meet more specific requirements. For more information about Log Management policies, see Log Management Policies.
Create and maintain AWS CloudTrail log sources
If Alert Logic is not already collecting CloudTrail logs, you can create an AWS CloudTrail log source manually in the Alert Logic console to collect CloudTrail logs. This AWS CloudTrail is in addition to the one configured for discovery of your AWS assets. To complete this action, you need the following AWS account information:
- SNS topic configured to receive notifications from CloudTrail S3 bucket
- SQS queue to which CloudTrail publishes events - this queue must be subscribed to the SNS topic with a policy to allow publishing to the queue
- IAM role credentials:
- To use an existing IAM role, select Use an existing IAM Role during AWS CloudTrail collection source creation, and then select the IAM role to use.
- To create a new IAM role, first download and open one of the following policy documents, and then create an IAM role (see Configure IAM Role for Amazon Web Services (AWS) and use the appropriate policy below for your configuration):
- Use the default policy, recommended policy document (.txt), for CloudTrail log collection. Keep the document open so you can copy and paste the information during IAM role creation.
- If you have AWS Key Management Service (KMS) configured for the AWS account in which you are configuring this CloudTrail collection source, use this policy document. Keep the document open so you can copy and paste the information during IAM role creation.
To create an AWS CloudTrail source:
- From the Deployments page, click the deployment for which you want to create a CloudTrail collection source.
- Click CONFIGURE LOG SOURCES.
- Click the add icon ().
- From Source Log Type, select AWS CloudTrail.
- In Source Name, type a descriptive name.
- Select Enable Collection.
- In Collection Alerts, click the field and select one or more alert options.
- In the SQS Queue Name field, type the name of the SQS queue you created to collect CloudTrail logs.
- From AWS Region, specify the region in which you created the SQS queue in the previous steps.
- Select either Create new IAM Role or Use an existing IAM Role.
- In the slideout panel, complete the following fields.
- In Credential Name, enter a descriptive name.
- In Role ID, enter the IAM role you created.
- In External ID, enter your Alert Logic customer ID.
- In the Tags field, type an easily filtered tag.
- Click SAVE.
To update an AWS CloudTrail source:
- From the Deployments page, click the deployment for which you want to update the log source.
- Click CONFIGURE LOG SOURCES.
- Place your cursor over the desired collection source and click the pencil icon ().
- Make the necessary updates.
- Click SAVE.
Create and maintain AWS S3 log sources
You must create an AWS S3 log source in the Alert Logic console to collect AWS S3 logs. To complete this action, you need the following AWS account information:
- IAM role credentials:
- To use an existing IAM role, select Use an existing IAM Role during AWS S3 log source creation, and then select the IAM role to use.
- To create a new IAM role, first download and open one of the following policy documents, and then create an IAM role (see Configure IAM Role for Amazon Web Services (AWS) and use the appropriate policy below for your configuration):
- Use the default policy, recommended policy document (.txt), for S3 log collection. Keep the document open so you can copy and paste the information during IAM role creation.
- If you have AWS Key Management Service (KMS) configured for the AWS account in which you are configuring this S3 collection source, use this policy document. Keep the document open so you can copy and paste the information during IAM role creation.
To create an AWS S3 source:
- From the Deployments page, click the deployment for which you want to create an S3 collection source.
- Click CONFIGURE LOG SOURCES.
- Click the add icon ().
- From Source Log Type, select S3.
- In Source Name, type a descriptive name.
- Select Enable Collection.
- In Bucket, type the bucket name, followed by the directory name. This bucket name must use a DNS-compliant name. For more information, visit the AWS documentation site.
- In File Name or Pattern, type the file name or date pattern of the file log.
- In Collection Policy:
- To use an existing policy, select Use an existing Policy, and then select a policy.
- To create a new policy, select Create a New Policy and select the settings you want.
- In Collection Alerts, click the field and select one or more alert options.
- From Time Zone, select a time zone.
- In the Alert Logic console, complete the following fields:
- In Credential Name, enter a descriptive name.
- In Role ID, enter the Role ARN you created.
- In External ID, enter the external ID.
- In Collection Interval, type a value in minutes to indicate how often Log Manager retrieves S3 logs.
- In the Tags field, type an easily filtered tag.
- Click SAVE.
s3bucketname/root_folder
To update an AWS S3 source:
- From the Deployments page, click the deployment for which you want to update the log source.
- Click CONFIGURE LOG SOURCES.
- Place your cursor over the desired collection source and click the pencil icon ().
- Make the necessary updates.
- Click SAVE.
Additional Tasks
To learn how to perform additional tasks, such as viewing source information, mass editing sources, and archiving and restoring collection sources, see View log source information.