When you configure Amazon Elastic Load Balancer (ELB) Access to send log data to an S3 bucket and create a log collection job in USM Anywhere, you can use the ELB Access plugin to translate the raw log data into normalized events for analysis.
|Device type||Load balancer|
ELB Access Integration
To configure ELB Access to send log data to USM Anywhere
Create an S3 bucket:
- Open the Amazon S3 console at https://console.aws.amazon.com/s3/.
- Choose Create Bucket.
On the Create a Bucket page, do the following:
- For Bucket Name, enter a name for your bucket.
- For Region, select the region where you created your load balancer.
- Choose Create.
Attach a policy statement to your bucket:
Open the Amazon S3 console at https://console.aws.amazon.com/s3/.
Select the bucket, and then choose Properties.
For Permissions, choose Add bucket policy.
On the Bucket Policy Editor page, choose AWS Policy Generator.
On the AWS Policy Generator page, do the following:
For Select Type of Policy, select S3 Bucket Policy.
For Effect, select Allow to allow access to the S3 bucket.
For Principal, type the account ID for Elastic Load Balancing to grant Elastic Load Balancing access to the S3 bucket.
Use the account ID that corresponds to the region for your load balancer and bucket.
For Actions, select PutObject to allow Elastic Load Balancing to store objects in the S3 bucket.
For Amazon Resource Name (ARN), type the ARN of the S3 bucket in the following format:
Choose Add Statement, Generate Policy.
Copy the policy displayed in the Policy JSON Document page, and then choose Close.
Return to the Bucket Policy Editor page and paste the policy into the text area.
Choose Save to save the policy. If Save is not enabled, press Enter.
For Permissions, choose Save to attach the policy to your bucket.
Enable Access Logs:
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
On the navigation pane, under LOAD BALANCING, choose Load Balancers.
Select your load balancer.
On the Description tab, for Access logs, choose (Edit).
On the Configure Access Logs page, do the following:
Select Enable access logs.
Set the interval (default = 60 minutes).
For S3 location, type the name of your S3 bucket, including the prefix.
To schedule a log collection job for an S3 bucket
- Go to SETTINGS > SCHEDULER.
In the left navigation list, click Log Collection.
Note: You can use the Sensor filter at the top of the list to choose your
AWS sensorto easily review the current AWSlog jobs.
Click Create Log Collection Job.
Note: If you recently deployed a new Sensor, it can take 10 to 20 minutes for USM Anywhere to discover the various log sources. After it discovers the logs, you must manually enable the
AWSlog collection jobs you want before the system collects the log data.
Enter the Name and Description for the job.
The description is optional, but it is a best practice to provide this information so that others can easily understand what it does.
- In the Select App option, select Amazon Web Services.
In the App Action option, select Monitor S3 Bucket.
Enter the Bucket Name and Path.
The bucket name is simply the name of the S3 bucket as configured in your AWS account, such as alienvault-dev-tools in the example below.
The path is the path prefix within the S3 Bucket, such as monitoring/builds in our example. This does not include the bucket name.
In Source Format option, select raw.
In Plugin option, select ELBAccess.
- Set the Schedule options.
- Click Save.
Available Plugin Fields
The following plugin fields are important attributes extracted from the syslog message. The USM Anywhere reports use these fields, and you can also reference them when creating custom reports. In addition to reporting, the USM Anywhere correlation rules make use of these fields.
- customfield_0 → Request Processing Time
- customfield_1 → Backend Processing Time
- customfield_2 → Response Processing Time
- customfield_3 → Load Balancer Status Code
For troubleshooting, refer to the vendor documentation: