You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note 1:** A combination of static and dynamic values consisting of field paths followed by "||" followed by another field path or a static value (e.g `foo.{.bar.baz||.qux.quux.corge||.grault||"nil"}-waldo.fred{.plugh||"none"}`)
122
+
**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"}`)
123
+
124
+
Date formatters are specified using one or more of the following subset of [chrono](https://docs.rs/chrono/latest/chrono/format/strftime/index.html#specifiers)
125
+
specifiers to format the `.timestamp` field value:
126
+
127
+
| Spec | Example | Description |
128
+
|------|---------|-------------|
129
+
| %F | 2001-07-08| Year-month-day format (ISO 8601). Same as %Y-%m-%d.|
130
+
| %Y | 2001 |The full proleptic Gregorian year, zero-padded to 4 digits
131
+
| %m | 07 | Month number (01–12), zero-padded to 2 digits.|
132
+
| %d |08|Day number (01–31), zero-padded to 2 digits.|
133
+
| %H |00|Hour number (00–23), zero-padded to 2 digits.|
134
+
| %M |34|Minute number (00–59), zero-padded to 2 digits.|
135
+
| %S |60|Second number (00–60), zero-padded to 2 digits.|
136
+
122
137
**Note 2:** The collector will encode events as [JSON](https://www.rfc-editor.org/rfc/rfc8259)
123
138
124
139
#### ViaQ DataModel API
125
140
126
-
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:
141
+
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:
127
142
128
143
| log type| log source | key prefix |
129
144
| --- | --- | --- |
@@ -169,18 +184,20 @@ Additionally, this change may be interpreted as a "reliable" delivery mechanism
169
184
is still misleading. The OpenShift logging product is not a guaranted log collection and storage system and this
170
185
output will remain subject to the same set of limitations as all other outputs.
171
186
187
+
Lastly, using this output provides no mechanism to query log records in a useful manner that is offered by other outputs (i.e. LokiStack). The available "metadata" is dependent upon the definition of the "keyPrefix" when the logs are written to S3. If the "keyPrefix" does not provide useful way to organize the data then retrieval of that data will be challenging.
188
+
172
189
## Alternatives (Not Implemented)
173
190
174
191
175
192
## Open Questions [optional]
176
193
177
194
1. Do we need to support `filename_time_format` to address the key prefix functionality proposed by the draft [PR](https://github.com/openshift/cluster-logging-operator/pull/3096)
195
+
* All indicators are that we need some way to provide a way for users to inject a formatted date into the "keyPrefix" field in order to provide logical organization of the records when written to the bucket
178
196
2. Is there a need to introduce this feature as tech-preview with a `v2beta1` API to allow the "soak" time for the API and additional testing?
179
197
180
198
## Test Plan
181
199
182
-
Aside from the usual testing by logging QE, the intent is to deploy, potentially early canidate releases, to the HCP
183
-
environment for them to exercise their S3 lambda design
200
+
Aside from the usual testing by logging QE, the intent is to deploy, potentially early candidate releases, to the HCP environment in order to exercise their S3 lambda design
0 commit comments