Cloudwatch logs can be exported to Logiq using an AWS Lambada function; the process is as below. AWS Lambda function can act as a trigger for a CloudWatch log stream.
Logiq provides a CloudFormation template to create the logiq CloudWatch exporter lambda function.
This CloudFormation stack creates a lambda function and its necessary permissions. The following attributes need to be configured.
Application name, A readable name for Logiq to partition logs.
Cluster ID, A readable name for Logiq to partition logs.
Namespace, A readable name for Logiq to partition logs.
IP address or hostname of Logiq server.
JWT token to securely ingest logs
Once the CloudFormation stack is created, navigate to the AWS Lambda function(logiq-cloudwatch-exporter) and add a trigger.
On the Add trigger page, select CloudWatch and select Log Group.
Once this configuration is complete, any new logs coming to the configured CloudWatch Log group will be streamed to the Logiq cluster.