Skip to content

Commit 27d75e4

Browse files
authored
Update logging.md
1 parent a90ba9d commit 27d75e4

File tree

1 file changed

+101
-1
lines changed
  • cd3_automation_toolkit/documentation/terraform

1 file changed

+101
-1
lines changed

cd3_automation_toolkit/documentation/terraform/logging.md

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,113 @@ vcn_log_groups = {
8787
description = "Log Group for VCN"
8888
},
8989
##Add New Log Groups for london here##
90+
}
91+
92+
```
93+
94+
<br>
95+
<br>
96+
9097

98+
**2. LBaaS access and error logs, log groups**
99+
<br>
100+
101+
- **Syntax for Load Balancer access and error logs**
102+
103+
```
104+
105+
loadbalancer_logs = {
106+
# Log map #
107+
## key - Is a unique value to reference the resources respectively
108+
key = {
109+
display_name = string
110+
log_group_id = string
111+
log_type = string
112+
category = string
113+
resource = string
114+
service = string
115+
source_type = string
116+
compartment_id = string
117+
is_enabled = bool
118+
retention_duration = string
119+
defined_tags = map
120+
}
121+
}
122+
```
123+
<br>
124+
125+
- **Example**
126+
```
127+
// Copyright (c) 2021, 2022, Oracle and/or its affiliates.
128+
########################################################
129+
# ManagementServices
130+
# LOADBALANCER Logs - tfvars
131+
# Allowed Values:
132+
# compartment_id can be the ocid or the name of the compartment hierarchy delimited by double hiphens "--"
133+
# Example : compartment_id = "ocid1.compartment.oc1..aaaaaaaahwwiefb56epvdlzfic6ah6jy3xf3c" or compartment_id = "Network-root-cpt--Network" where "Network-root-cpt" is the parent of "Network" compartment
134+
############################
135+
loadbalancer_logs = {
136+
# Log map #
137+
my_lbr1-log-access = {
138+
display_name = "my_lbr1_access-log"
139+
log_group_id = "my_lbr1-log-group"
140+
log_type = "SERVICE"
141+
category = "access"
142+
resource = "my_lbr1"
143+
service = "loadbalancer"
144+
source_type = "OCISERVICE"
145+
compartment_id = "Networkt"
146+
is_enabled = true
147+
retention_duration = 30
148+
defined_tags = {
149+
"Operations.CostCenter"= "01" ,
150+
"Users.Name"= "user01"
151+
}
152+
},
153+
my_lbr1-log-error = {
154+
display_name = "my_lbr1_error-log"
155+
log_group_id = "my_lbr1-log-group"
156+
log_type = "SERVICE"
157+
category = "error"
158+
resource = "my_lbr1"
159+
service = "loadbalancer"
160+
source_type = "OCISERVICE"
161+
compartment_id = "Network"
162+
is_enabled = true
163+
retention_duration = 30
164+
defined_tags = {
165+
"Operations.CostCenter"= "01" ,
166+
"Users.Name"= "user01"
167+
}
168+
},
169+
##Add New Logs for london here##
170+
}
171+
// Copyright (c) 2021, 2022, Oracle and/or its affiliates.
172+
############################
173+
# ManagementServices
174+
# LOADBALANCER Log Groups - tfvars
175+
# Allowed Values:
176+
# compartment_id can be the ocid or the name of the compartment hierarchy delimited by double hiphens "--"
177+
# Example : compartment_id = "ocid1.compartment.oc1..aaaaaaaahwwiefb56epvdlzfic6ah6jy3xf3c" or compartment_id = "Security--Prod" where "Security" is the parent of "Prod" compartment
178+
############################
179+
loadbalancer_log_groups = {
180+
# Log Group map #
181+
my_lbr1-log-group = {
182+
compartment_id = "Network"
183+
display_name = "my_lbr1-log-group"
184+
description = "Log Group for my_lbr1"
185+
defined_tags = {
186+
"Operations.CostCenter"= "01" ,
187+
"Users.Name"= "user01"
188+
}
189+
}
91190
```
92191

93192
<br>
94193
<br>
95194

96-
**2. Object Storage logs and log groups**
195+
196+
**3. Object Storage logs and log groups**
97197

98198
<br>
99199

0 commit comments

Comments
 (0)