provider "aws" {
}
module "coralogix-shipper-s3" {
source = "coralogix/aws/coralogix//modules/s3"
coralogix_region = "Europe"
private_key = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
application_name = "s3"
subsystem_name = "logs"
s3_bucket_name = "test-bucket-name"
integration_type = "s3"
}
now execute:
$ terraform init
$ terraform plan
$ terraform apply
To run this example you need to save this code in Terraform file, and change the values according to our settings.
provider "aws" {
}
module "cloudwatch_logs" {
source = "coralogix/aws/coralogix//modules/cloudwatch-logs"
coralogix_region = "Europe"
private_key = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
application_name = "cloudwatch"
subsystem_name = "logs"
log_groups = ["test-log-group"]
}
now execute:
$ terraform init
$ terraform plan
$ terraform apply
Run terraform destroy
when you don't need these resources.
provider "aws" {
}
module "kinesis" {
source = "coralogix/aws/coralogix//modules/kinesis"
coralogix_region = "Europe"
private_key = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
application_name = "kinesis"
subsystem_name = "logs"
kinesis_stream_name = "<your kinesis stream name>"
}
now execute:
$ terraform init
$ terraform plan
$ terraform apply
Run terraform destroy
when you don't need these resources.
provider "aws" {
}
module "cloudwatch_firehose_coralogix" {
source = "coralogix/aws/coralogix//modules/firehose"
coralogix_region = "ireland"
private_key = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
application_name = "firehose"
subsystem_name = "logs-and-metrics"
firehose_stream = "<your kinesis stream name>"
#logs:
logs_enable = true
integration_type_logs = "CloudWatch_JSON"
#metric:
metric_enable = true
enable_cloudwatch_metricstream = true
}
now execute:
$ terraform init
$ terraform plan
$ terraform apply
provider "aws" {
}
module "coralogix-resource-metadata" {
source = "coralogix/aws/coralogix//modules/resource-metadata"
coralogix_region = "Europe"
private_key = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
}
now execute:
$ terraform init
$ terraform plan
$ terraform apply
- cloudwatch-logs - Send logs from
CloudWatch
. - s3 - Send logs from
S3
bucket. - eventbridge - Send logs from
eventbrdge
. - firehose-logs - Send logs streams with
firehose
. - firehose-metrics - Send metric streams with
firehose
. - kinesis - Send logs from
kinesis data stream
with lambda. - resource-metadata - Send metadata from your AWS account to coralogix.
- s3-archive - Create s3 archives for coralogix logs and metrics.
Module is maintained by Coralogix.
Apache 2 Licensed. See LICENSE for full details.