Skip to content

Commit d43ed35

Browse files
feat: create field extraction forgecicd_trust_validation
1 parent 6e8d935 commit d43ed35

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

modules/integrations/splunk_cloud_conf_shared/props_cloudwatchlogs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ resource "splunk_configs_conf" "forgecicd_cloudwatchlogs" {
66
"REPORT-forgecicd_cloudwatchlogs_lambda_tenant_fields" = "forgecicd_cloudwatchlogs_lambda_tenant_fields"
77
"REPORT-forgecicd_cloudwatchlogs_global_lambda_tenant_fields" = "forgecicd_cloudwatchlogs_global_lambda_tenant_fields"
88
"REPORT-forgecicd_extra_lambda_tenant_fields" = "forgecicd_extra_lambda_tenant_fields"
9+
"REPORT-forgecicd_trust_validation" = "forgecicd_trust_validation"
910
}
1011
lifecycle {
1112
ignore_changes = [

modules/integrations/splunk_cloud_conf_shared/transforms_lambda.tf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,37 @@ resource "splunk_configs_conf" "forgecicd_extra_lambda_tenant_fields" {
2929
]
3030
}
3131
}
32+
33+
34+
resource "splunk_configs_conf" "forgecicd_trust_validation" {
35+
name = "transforms/forgecicd_trust_validation"
36+
37+
variables = {
38+
REGEX = "Validation complete:\\s*(\\[[^\\r\\n]+])"
39+
FORMAT = "forgecicd_trust_validation::$1"
40+
SOURCE_KEY = "_raw"
41+
CLEAN_KEYS = "0"
42+
}
43+
44+
acl {
45+
app = var.splunk_conf.acl.app
46+
owner = var.splunk_conf.acl.owner
47+
sharing = var.splunk_conf.acl.sharing
48+
read = var.splunk_conf.acl.read
49+
write = var.splunk_conf.acl.write
50+
}
51+
lifecycle {
52+
ignore_changes = [
53+
variables["CAN_OPTIMIZE"],
54+
variables["DEFAULT_VALUE"],
55+
variables["DEPTH_LIMIT"],
56+
variables["DEST_KEY"],
57+
variables["KEEP_EMPTY_VALS"],
58+
variables["LOOKAHEAD"],
59+
variables["MATCH_LIMIT"],
60+
variables["MV_ADD"],
61+
variables["WRITE_META"],
62+
variables["disabled"]
63+
]
64+
}
65+
}

0 commit comments

Comments
 (0)