x-pack/filebeat/module/aws/elb/README.md
Module for the AWS load balancers, it supports the following flavours:
Implementation based on the description of the access logs from the documentation that can be found in:
Test files starting with example are copied or based on examples of this
documentation.
terraform output sqs_queue_url.filebeat.modules:
- module: aws
elb:
enabled: true
var.queue_url: <queue url>
var.credential_profile_name: <profile name>
s3access:
enabled: false
Please notice that ELB logs can take some minutes before being available in S3.
Terraform configuration is included in the metricset to deploy an scenario that deploys some instances with running services and a set of load balancers for these services.
Configuration files can be found in _meta/terraform, and deployed with
terraform apply. It will get credentials from your configuration, some
settings can be overriden using Terraform variables (see vars.tf file).
Once deployed, information about the resources can be queried with terraform output, for example to query the different load balancers:
curl $(terraform output elb_http_address)/curl $(terraform output elb_tcp_address)/curl $(terraform output lb_http_address)/curl $(terraform output lb_tcp_address)/SQS queue URL needed for configuration of filebeat can be obtained with
terraform output sqs_queue_url.
Remember to remove the scenario when not needed with terraform destroy.