kinesis-firehose-splunk

disney/kinesis-firehose-splunk/aws

Terraform Module HCL AWS

This code creates/configures a Kinesis Firehose in AWS to send CloudWatch log data to Splunk.

Install
module "kinesis-firehose-splunk" {
source = "disney/kinesis-firehose-splunk/aws"
version = "10.0.1"
}
⭐ Source on GitHub 📦 Registry page
README

Send CloudWatch Logs to Splunk via Kinesis Firehose This module configures a Kinesis Firehose, sets up a subscription for a desired CloudWatch Log Group to the Firehose, and sends the log data to Splunk. A Lambda function is required to transform the CloudWatch Log data from "CloudWatch compressed format" to a format compatible with Splunk. This module takes care of configuring this Lambda function. Usage Instructions In order to send this data to Splunk you will need to first obtain an HEC Token from your Splunk administrator. Once you have received the token, you can proceed forward in creating a module resource, such as the one in the Example below. You will use a KMS key of your choice to encrypt the token, as it is sensitive. Note: the user of this module is responsible for specifying

Inputs (50)
NameTypeDescriptionDefault
hec_urlstringSplunk Kinesis URL for submitting CloudWatch logs to splunk required
s3_bucket_namestringName of the s3 bucket Kinesis Firehose uses for backups required
cloudwatch_log_filter_namestringName of Log Filter for CloudWatch Log subscription to Kinesis Firehose"KinesisSubscriptionFilter"
lambda_processing_buffer_interval_in_secondsnumberLambda processing buffer interval in seconds.61
nodejs_runtimestringRuntime version of nodejs for Lambda function"nodejs22.x"
hec_endpoint_typestringSplunk HEC endpoint type; `Raw` or `Event`"Raw"
cloudwatch_to_firehose_trust_iam_role_namestringIAM Role name for CloudWatch to Kinesis Firehose subscription"CloudWatchToSplunkFirehoseTrust"
subscription_filter_patternstringFilter pattern for the CloudWatch Log Group subscription to the Kinesis Firehose""
firehose_server_side_encryption_enabledboolEnable SSE for Kinesis Firehosefalse
cloudwatch_log_group_kms_key_idstringKMS key ID of the key to use to encrypt the Cloudwatch log groupnull
s3_backup_modestringDefines how documents should be delivered to Amazon S3. Valid values are FailedE"FailedEventsOnly"
object_lock_configuration_modestringDefault Object Lock retention mode you want to apply to new objects placed in thnull
lambda_function_timeoutnumberThe function execution time at which Lambda should terminate the function.180
firehose_namestringName of the Kinesis Firehose"kinesis-firehose-to-splunk"
kinesis_firehose_retry_durationnumberAfter an initial failure to deliver to Splunk, the total amount of time, in seco300
name_cloudwatch_logs_to_shipstringName of the CloudWatch Log Group that you want to ship to Splunk (single log gronull
s3_bucket_server_side_encryption_algorithmstring(Required) Server-side encryption algorithm to use. Valid values are AES256 and "AES256"
s3_prefixstringOptional prefix (a slash after the prefix will show up as a folder in the s3 buc"kinesis-firehose/"
hec_acknowledgment_timeoutnumberThe amount of time, in seconds between 180 and 600, that Kinesis Firehose waits 300
log_stream_namestringName of the CloudWatch log stream for Kinesis Firehose CloudWatch log group"SplunkDelivery"
encryption_contextmap(string)aws_kms_secrets encryption context{}
aws_s3_bucket_versioningstringVersioning state of the bucket. Valid values: Enabled, Suspended, or Disabled. Dnull
… and 10 more inputs
Outputs (2)
cloudwatch_to_firehose_trust_arn — cloudwatch log subscription filter role_arn
destination_firehose_arn — cloudwatch log subscription filter - Firehose destination arn
Resources (15)
aws_cloudwatch_log_groupaws_cloudwatch_log_streamaws_cloudwatch_log_subscription_filteraws_iam_policyaws_iam_roleaws_iam_role_policy_attachmentaws_kinesis_firehose_delivery_streamaws_lambda_functionaws_s3_bucketaws_s3_bucket_lifecycle_configurationaws_s3_bucket_object_lock_configurationaws_s3_bucket_ownership_controlsaws_s3_bucket_public_access_blockaws_s3_bucket_server_side_encryption_configurationaws_s3_bucket_versioning
Details
FrameworkTerraform Module
LanguageHCL
Version10.0.1
Cloud AWS
★ Stars76
Forks49
Total downloads91.8k
Inputs50
Outputs2
Resources15
Submodules1
LicenseNOASSERTION
Namespacedisney
Updated