cloudwatch-to-syslog-server

aiden/cloudwatch-to-syslog-server/aws

Terraform Module HCL AWS

Terraform module to send CloudWatch logs to a syslog server. Compatible with papertrail, logstash, and datadog.

Install
module "cloudwatch-to-syslog-server" {
source = "aiden/cloudwatch-to-syslog-server/aws"
version = "0.0.1"
}
plain text: /constructs/tfmod-aiden-cloudwatch-to-syslog-server-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

cloudwatch-to-syslog-server: A Terraform module to send CloudWatch logs to a syslog server ![Maintained by aiden.ai](https://aiden.ai) ![CircleCI](https://circleci.com/gh/aiden/terraform-aws-cloudwatch-to-syslog-server/tree/master) ![License: MIT](https://opensource.org/licenses/MIT) ![cloudwatch-to-syslog-server](./docs/cloudwatch-to-syslog-server.svg) cloudwatch-to-syslog-server is a Terraform module that defines an AWS Lambda function to forward the CloudWatch logs of a given log group to a syslog server. Many third-party services offer to collect logs with a syslog server, for instance: - Papertrail - logstash (from the ELK stack) - Datadog Example You can find an example Terraform configuration in the example folder. Why cloudwatch-to-syslog-server? AWS CloudWatch is meant for durable

Inputs (7)
NameTypeDescriptionDefault
log_groupstringThe name of the AWS CloudWatch log group to forward to the syslog server. required
syslog_server_hoststringThe host for the syslog server (e.g., logs5.papertrailapp.com). required
syslog_server_portstringThe port for the syslog server. required
namestringCommon name given to the lambda function, the IAM role, the lambda permission st required
regionstringThe AWS region where the AWS CloudWatch Logs are located. required
account_idstringThe ID of the AWS account where the AWS CloudWatch Logs are located. required
disable_tlsstringWhether to use TLS or not when communicating with the syslog server."0"
Outputs (2)
log_group — The name of the log group that is subscribed to. Its log events are forwarded to the syslog server.
lambda_arn — The ARN of the lambda function subscribed to the log group.
Resources (5)
aws_cloudwatch_log_subscription_filteraws_iam_roleaws_iam_role_policy_attachmentaws_lambda_functionaws_lambda_permission
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.1
Cloud AWS
★ Stars12
Forks9
Total downloads6.6k
Inputs7
Outputs2
Resources5
Examples1
LicenseNOASSERTION
Namespaceaiden
Updated