File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ resource "aws_kinesis_firehose_delivery_stream" "splunk_delivery_stream" {
3131 splunk_configuration {
3232 hec_endpoint = var. splunk_hec_endpoint
3333 hec_token = var. splunk_hec_token
34- hec_endpoint_type = " Event "
34+ hec_endpoint_type = " Raw "
3535 s3_backup_mode = " FailedEventsOnly"
3636
3737 s3_configuration {
Original file line number Diff line number Diff line change @@ -75,17 +75,15 @@ resource "aws_cloudwatch_event_target" "firehose_target" {
7575
7676 input_template = jsonencode ({
7777 time = " <time>"
78- host = " aws"
79- source = " aws:cloudwatch:alarm"
78+ source = " elid-${ var . environment } :cloudwatch:alarm"
8079 sourcetype = " aws:cloudwatch:alarm"
8180 event = {
82- account_id = " <account>"
83- region = " <region>"
8481 alarm_name = " <alarm_name>"
8582 new_state = " <new_state>"
8683 old_state = " <old_state>"
8784 reason = " <reason>"
8885 severity = " <new_state>" == " ALARM" ? " high" : " info"
86+ region = " <region>"
8987 }
9088 })
9189 }
You can’t perform that action at this time.
0 commit comments