This page explains how to send data from Amazon CloudWatch to Axiom.
Axiom CloudWatch Forwarder is a set of easy-to-use AWS CloudFormation stacks designed to forward logs from Amazon CloudWatch to Axiom. It includes a Lambda function to handle the forwarding and stacks to create Amazon CloudWatch log group subscription filters for both existing and future log groups.
Axiom CloudWatch Forwarder includes templates for the following CloudFormation stacks:
To determine the best method to send data from different AWS services, see Send data from AWS to Axiom.
The Axiom CloudWatch Forwarder is an open-source project and welcomes your contributions. For more information, see the GitHub repository.
To install the Axiom CloudWatch Forwarder, choose one of the following:
Create a new Forwarder module in your Terraform file in the following way:
API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.DATASET_NAME
with the name of the Axiom dataset where you want to send data.Alternatively, create a dataset with the Axiom Terraform provider.
Create a new Subscriber module in your Terraform file in the following way:
Create a new Listener module in your Terraform file in the following way:
In your terminal, go to the folder of your main Terraform file, and then run terraform init
.
Run terraform plan
to check the changes, and then run terraform apply
.
The Subscriber and Unsubscriber stacks allow you to filter the log groups by a combination of names, prefix, and regular expression filters. If no filters are specified, the stacks subscribe to or unsubscribe from all log groups. You can also whitelist a specific set of log groups using filters in the CloudFormation stack parameters. The log group names, prefix, and regular expression filters included are additive, meaning the union of all provided inputs is matched.
For example, you have the following list of log groups:
/aws/lambda
./aws/eks/cluster/cluster-1,/aws/rds/instance-baz
.\/aws\/lambda\/.*
matches all Lambda log groups.The optional Listener stack does the following:
To remove subscription filters for one or more log groups, launch the Unsubscriber stack template on AWS.
The log group filtering works the same way as the Subscriber stack. You can filter the log groups by a combination of names, prefix, and regular expression filters.
Alternatively, to turn off log forwarding to Axiom, create a new Unsubscriber module in your Terraform file in the following way:
This page explains how to send data from Amazon CloudWatch to Axiom.
Axiom CloudWatch Forwarder is a set of easy-to-use AWS CloudFormation stacks designed to forward logs from Amazon CloudWatch to Axiom. It includes a Lambda function to handle the forwarding and stacks to create Amazon CloudWatch log group subscription filters for both existing and future log groups.
Axiom CloudWatch Forwarder includes templates for the following CloudFormation stacks:
To determine the best method to send data from different AWS services, see Send data from AWS to Axiom.
The Axiom CloudWatch Forwarder is an open-source project and welcomes your contributions. For more information, see the GitHub repository.
To install the Axiom CloudWatch Forwarder, choose one of the following:
Create a new Forwarder module in your Terraform file in the following way:
API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.DATASET_NAME
with the name of the Axiom dataset where you want to send data.Alternatively, create a dataset with the Axiom Terraform provider.
Create a new Subscriber module in your Terraform file in the following way:
Create a new Listener module in your Terraform file in the following way:
In your terminal, go to the folder of your main Terraform file, and then run terraform init
.
Run terraform plan
to check the changes, and then run terraform apply
.
The Subscriber and Unsubscriber stacks allow you to filter the log groups by a combination of names, prefix, and regular expression filters. If no filters are specified, the stacks subscribe to or unsubscribe from all log groups. You can also whitelist a specific set of log groups using filters in the CloudFormation stack parameters. The log group names, prefix, and regular expression filters included are additive, meaning the union of all provided inputs is matched.
For example, you have the following list of log groups:
/aws/lambda
./aws/eks/cluster/cluster-1,/aws/rds/instance-baz
.\/aws\/lambda\/.*
matches all Lambda log groups.The optional Listener stack does the following:
To remove subscription filters for one or more log groups, launch the Unsubscriber stack template on AWS.
The log group filtering works the same way as the Subscriber stack. You can filter the log groups by a combination of names, prefix, and regular expression filters.
Alternatively, to turn off log forwarding to Axiom, create a new Unsubscriber module in your Terraform file in the following way: