Logging
1. Object Storage Log Groups
- Syntax
oss_log_groups = {
## key - Is a unique value to reference the resources respectively
key = {
# Required
compartment_id = string
display_name = string
# Optional
description = string
defined_tags = map
freeform_tags = map
}
- Example
// Copyright (c) 2021, 2022, Oracle and/or its affiliates. ############################ # ManagementServices # OSS Log Groups - tfvars # Allowed Values: # compartment_id can be the ocid or the name of the compartment hierarchy delimited by double hiphens "--" # Example : compartment_id = "ocid1.compartment.oc1..aaaaaaaahwwiefb56epvdlzfic6ah6jy3xf3c" or compartment_id = "Security--Prod" where "Security" is the parent of "Prod" compartment ############################ oss_log_groups = { # Log Group map # CD3-london-oss-log-group = { compartment_id = "Storage" display_name = "CD3-london-oss-log-group" description = "Log Group for OSS bucket" }, ##Add New Log Groups for london here## }
2. Object Storage Logs
- Syntax
oss_logs = {
## key - Is a unique value to reference the resources respectively
key = {
# Required
display_name = string
log_group_id = string
log_type = string
# Optional
compartment_id = string
category = string
resource = string
service = string
source_type = string
is_enabled = bool
retention_duration = number
defined_tags = map
freeform_tags = map
}
- Example
// Copyright (c) 2021, 2022, Oracle and/or its affiliates. ############################ # ManagementServices # OSS Logs - tfvars # Allowed Values: # compartment_id can be the ocid or the name of the compartment hierarchy delimited by double hiphens "--" # Example : compartment_id = "ocid1.compartment.oc1..aaaaaaaahwwiefb56epvdlzfic6ah6jy3xf3c" or compartment_id = "Network-root-cpt--Network" where "Network-root-cpt" is the parent of "Network" compartment ############################ oss_logs = { # Log map # CD3-london-oss-log = { display_name = "CD3-london-oss-log" log_group_id = "CD3-london-oss-log-group" log_type = "SERVICE" category = "write" resource = "CD3-london-oss-bucket" service = "objectstorage" source_type = "OCISERVICE" compartment_id = "Storage" is_enabled = true retention_duration = 30 }, ##Add New Logs for london here## }
3. VCN Log Groups
- Syntax
vcn_log_groups = {
## key - Is a unique value to reference the resources respectively
key = {
# Required
compartment_id = string
display_name = string
# Optional
description = string
defined_tags = map
freeform_tags = map
}
- Example
// Copyright (c) 2021, 2022, Oracle and/or its affiliates. ############################ # ManagementServices # VCN Log Groups - tfvars # Allowed Values: # compartment_id can be the ocid or the name of the compartment hierarchy delimited by double hiphens "--" # Example : compartment_id = "ocid1.compartment.oc1..aaaaaaaahwwiefb56epvdlzfic6ah6jy3xf3c" or compartment_id = "Security--Prod" where "Security" is the parent of "Prod" compartment ############################ vcn_log_groups = { # Log Group map # fwl-vcn-flow-log-group = { # Required compartment_id = "Network" display_name = "fwl-vcn-flow-log-group" # Optional description = "Log Group for VCN" defined_tags = { "Oracle-Tags.CreatedOn"= "2023-01-10T08:18:18.100Z" , "Oracle-Tags.CreatedBy"= "oracleidentitycloudservice/abc@xyz.com" , "Schedule.Weekend"= "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" , "Schedule.WeekDay"= "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" , "ArchitectureCenter\devops_oke-d802.ArchitectureCenter\testrelease"= "test" } freeform_tags = {} }, ##Add New Log Groups for london here## }
4. VCN Flow Logs
- Syntax
vcn_logs = {
## key - Is a unique value to reference the resources respectively
key = {
# Required
display_name = string
log_group_id = string
log_type = string
# Optional
compartment_id = string
category = string
resource = string
service = string
source_type = string
is_enabled = bool
retention_duration = number
defined_tags = map
freeform_tags = map
}
- Example
// Copyright (c) 2021, 2022, Oracle and/or its affiliates. ############################ # ManagementServices # VCN Logs - tfvars # Allowed Values: # compartment_id can be the ocid or the name of the compartment hierarchy delimited by double hiphens "--" # Example : compartment_id = "ocid1.compartment.oc1..aaaaaaaahwwiefb56epvdlzfic6ah6jy3xf3c" or compartment_id = "Network-root-cpt--Network" where "Network-root-cpt" is the parent of "Network" compartment ############################ vcn_logs = { # Log map # fwl-vcn_fwl-priv-flow-log = { # Required display_name = "fwl-priv-flow-log" log_group_id = "fwl-vcn-flow-log-group" log_type = "SERVICE" # Optional category = "all" resource = "fwl-vcn_fwl-priv" service = "flowlogs" source_type = "OCISERVICE" compartment_id = "Network" is_enabled = true retention_duration = 30 defined_tags = { "Oracle-Tags.CreatedOn"= "2023-01-10T08:18:18.100Z" , "Oracle-Tags.CreatedBy"= "oracleidentitycloudservice/abc@xyz.com" , "Schedule.Weekend"= "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" , "Schedule.WeekDay"= "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" , "ArchitectureCenter\devops_oke-d802.ArchitectureCenter\testrelease"= "test" } }, fwl-vcn_fwl-mgmt-flow-log = { # Required display_name = "fwl-mgmt-flow-log" log_group_id = "fwl-vcn-flow-log-group" log_type = "SERVICE" # Optional category = "all" resource = "fwl-vcn_fwl-mgmt" service = "flowlogs" source_type = "OCISERVICE" compartment_id = "Network" is_enabled = true retention_duration = 30 defined_tags = { "Oracle-Tags.CreatedOn"= "2023-01-10T08:18:19.064Z" , "Oracle-Tags.CreatedBy"= "oracleidentitycloudservice/abc@xyz.com" , "Schedule.Weekend"= "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" , "Schedule.WeekDay"= "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" , "ArchitectureCenter\devops_oke-d802.ArchitectureCenter\testrelease"= "test" } }, ##Add New Logs for london here## }
5. Load Balancer Log Groups
- Syntax
loadbalancer_log_groups = {
## key - Is a unique value to reference the resources respectively
key = {
# Required
compartment_id = string
display_name = string
# Optional
description = string
defined_tags = map
freeform_tags = map
}
- Example
// Copyright (c) 2021, 2022, Oracle and/or its affiliates. ############################ # ManagementServices # LOADBALANCER Log Groups - tfvars # Allowed Values: # compartment_id can be the ocid or the name of the compartment hierarchy delimited by double hiphens "--" # Example : compartment_id = "ocid1.compartment.oc1..aaaaaaaahwwiefb56epvdlzfic6ah6jy3xf3c" or compartment_id = "Security--Prod" where "Security" is the parent of "Prod" compartment ############################ loadbalancer_log_groups = { # Log Group map # lbr2-log-group = { compartment_id = "Network" display_name = "lbr2-log-group" description = "Log Group for lbr2" defined_tags = { "Oracle-Tags.CreatedOn"= "2023-01-11T08:02:47.567Z" , "Oracle-Tags.CreatedBy"= "oracleidentitycloudservice/abc@xyz.com" , "Schedule.Weekend"= "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" , "Schedule.WeekDay"= "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" , "ArchitectureCenter\devops_oke-d802.ArchitectureCenter\testrelease"= "test" } freeform_tags = {} }, lbr1-log-group = { compartment_id = "Network" display_name = "lbr1-log-group" description = "Log Group for lbr1" defined_tags = { "Oracle-Tags.CreatedOn"= "2023-01-11T08:02:47.566Z" , "Oracle-Tags.CreatedBy"= "oracleidentitycloudservice/abc@xyz.com" , "Schedule.Weekend"= "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" , "Schedule.WeekDay"= "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" , "ArchitectureCenter\devops_oke-d802.ArchitectureCenter\testrelease"= "test" } freeform_tags = {} }, ##Add New Log Groups for london here## }
6. Load Balancer Logs
- Syntax
loadbalancer_logs = {
## key - Is a unique value to reference the resources respectively
key = {
# Required
display_name = string
log_group_id = string
log_type = string
# Optional
compartment_id = string
category = string
resource = string
service = string
source_type = string
is_enabled = bool
retention_duration = number
defined_tags = map
freeform_tags = map
}
- Example
// Copyright (c) 2021, 2022, Oracle and/or its affiliates. ############################ # ManagementServices # LOADBALANCER Logs - tfvars # Allowed Values: # compartment_id can be the ocid or the name of the compartment hierarchy delimited by double hiphens "--" # Example : compartment_id = "ocid1.compartment.oc1..aaaaaaaahwwiefb56epvdlzfic6ah6jy3xf3c" or compartment_id = "Network-root-cpt--Network" where "Network-root-cpt" is the parent of "Network" compartment ############################ loadbalancer_logs = { # Log map # lbr2-log-access = { display_name = "lbr2_access-log" log_group_id = "lbr2-log-group" log_type = "SERVICE" category = "access" resource = "lbr2" service = "loadbalancer" source_type = "OCISERVICE" compartment_id = "OMCDev--OMCDev-VM" is_enabled = true retention_duration = 30 defined_tags = { "Oracle-Tags.CreatedOn"= "2023-01-11T08:02:47.567Z" , "Oracle-Tags.CreatedBy"= "oracleidentitycloudservice/abc@xyz.com" , "Schedule.Weekend"= "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" , "Schedule.WeekDay"= "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" , "ArchitectureCenter\devops_oke-d802.ArchitectureCenter\testrelease"= "test" } }, lbr2-log-error = { display_name = "lbr2_error-log" log_group_id = "lbr2-log-group" log_type = "SERVICE" category = "error" resource = "lbr2" service = "loadbalancer" source_type = "OCISERVICE" compartment_id = "OMCDev--OMCDev-VM" is_enabled = true retention_duration = 30 defined_tags = { "Oracle-Tags.CreatedOn"= "2023-01-11T08:02:47.567Z" , "Oracle-Tags.CreatedBy"= "oracleidentitycloudservice/abc@xyz.com" , "Schedule.Weekend"= "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" , "Schedule.WeekDay"= "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" , "ArchitectureCenter\devops_oke-d802.ArchitectureCenter\testrelease"= "test" } }, ##Add New Logs for london here## }