Skip to content

Commit e1a0751

Browse files
committed
api clarifications
1 parent a25039f commit e1a0751

File tree

1 file changed

+29
-30
lines changed

1 file changed

+29
-30
lines changed

enhancements/cluster-logging/forwarder-to-s3.md

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -91,32 +91,33 @@ and updates the collector deployment
9191
apiVersion: "observability.openshift.io/v1"
9292
kind: ClusterLogForwarder
9393
spec:
94-
outputs:
95-
- name:
96-
type: s3 # add s3 to the enum
97-
tls: {}
98-
s3:
99-
url: # (optional) string is an alternate to the well-known AWS endpoints
100-
region: # (optional) string that is different from the configured service default
101-
bucket: # string for the S3 bucket absent leading 's3://' or trailing '/'
102-
keyPrefix: # (optional) templated string (see note 1)
103-
authentication:
104-
type: # enum: awsAccessKey, iamRole
105-
awsAccessKey:
106-
assumeRole: # (optional)
107-
roleARN: # secret reference
108-
externalID: # (optional) secret reference
109-
iamRole:
110-
roleARN: # secret reference
111-
token: # bearer token
112-
assumeRole: # (optional)
113-
roleARN: # secret reference
114-
externalID: # (optional)string
115-
delivery: # (optional) atLeastOnce, atMostOnce
116-
maxWrite: # (optional) quantity (e.g. 500k)
117-
compression: # (optional) none, gzip,zstd,snappy,zlib
118-
minRetryDuration: # (optional) duration
119-
maxRetryDuration: # (optional) duration
94+
outputs:
95+
- name:
96+
type: s3 # add s3 to the enum
97+
s3:
98+
url: # (optional) string is an alternate to the well-known AWS endpoints
99+
region: # (optional) string that is different from the configured service default
100+
bucket: # string for the S3 bucket absent leading 's3://' or trailing '/' and
101+
# truncated to 63 characters to meet length restrictions
102+
keyPrefix: # (optional) templated string (see note 1)
103+
authentication:
104+
type: # enum: awsAccessKey, iamRole
105+
awsAccessKey:
106+
assumeRole: # (optional)
107+
roleARN: # secret reference
108+
externalID: # (optional) secret reference
109+
iamRole:
110+
roleARN: # secret reference
111+
token: # bearer token
112+
assumeRole: # (optional)
113+
roleARN: # secret reference
114+
externalID: # (optional)string
115+
tuning:
116+
deliveryMode: # (optional) enum: atLeastOnce, atMostOnce
117+
maxWrite: # (optional) quantity (e.g. 500k)
118+
compression: # (optional) none, gzip,zstd,snappy,zlib
119+
minRetryDuration: # (optional) duration
120+
maxRetryDuration: # (optional) duration
120121
```
121122
122123
**Note 1:** A combination of date formatters, static or dynamic values consisting of field paths followed by "||" followed by another field path or a static value (e.g `foo.{"%Y-%m-%d"}/{.bar.baz||.qux.quux.corge||.grault||"nil"}-waldo.fred{.plugh||"none"}`)
@@ -134,10 +135,6 @@ specifiers to format the `.timestamp` field value:
134135
| %M |34|Minute number (00–59), zero-padded to 2 digits.|
135136
| %S |60|Second number (00–60), zero-padded to 2 digits.|
136137

137-
**Note 2:** The collector will encode events as [JSON](https://www.rfc-editor.org/rfc/rfc8259)
138-
139-
#### ViaQ DataModel API
140-
141138
The collector will write logs to the s3 bucket defaulting the key prefix that is constructed using attributes of the log entries when not defined by the **ClusterLogForwarder** spec as follows:
142139

143140
| log type| log source | key prefix |
@@ -150,6 +147,8 @@ The collector will write logs to the s3 bucket defaulting the key prefix that is
150147
| Audit | openshiftAPI|`<cluster_id>/<yyyy-mm-dd>/<log_type>/<log_source>/`|
151148
| Audit | ovn|`<cluster_id>/<yyyy-mm-dd>/<log_type>/<log_source>/`|
152149

150+
**Note 2:** The collector will encode events as [JSON](https://www.rfc-editor.org/rfc/rfc8259)
151+
153152
### Topology Considerations
154153

155154
#### Hypershift / Hosted Control Planes

0 commit comments

Comments
 (0)