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
Some log storages (e.g S3) store the logs as immutable object,
preventing append to existing objects. This is not suitable for long
running logs and requires to keep the log in memory for hour or more
consuming memory and risking to lose the log if the pod is restarted.
The alternative is to write the log to the storage more often and using
unique object names, following a pattern which allows to collect and
merge the parts for specific log. LOGGING_PLUGIN_MULTIPART_REGEX allows
to specify a Regex to match the parts of the same log.
Check docs/logging-support.md for more details.
Copy file name to clipboardExpand all lines: docs/logging-support.md
+1
Original file line number
Diff line number
Diff line change
@@ -51,3 +51,4 @@ These are the common configuration options for all third party logging APIs.
51
51
-`LOGGING_PLUGIN_FORWARDER_DELAY_DURATION`: This is the max duration in minutes taken by third party logging system to forward and store the logs after completion of taskrun and pipelinerun. This is used to search between start time of runs and completion plus buffer duration.
52
52
-`LOGGING_PLUGIN_QUERY_LIMIT`: Sets the query limit for Third Party Logging API if logging backend has a limit on number of log lines returned.
53
53
-`LOGGING_PLUGIN_QUERY_PARAMS`: Sets the query params for Third Party Logging API, these can be direction/sort order.Specify them in this format: "foo=bar&direction=backward"
54
+
-`LOGGING_PLUGIN_MULTIPART_REGEX`: Sets a Regex for matching parts of the same log. Some log backends (e.g S3) store objects immutably, once stored, you can't append. For long running TaskRun steps, it's not effective to keep such log in memory until the step completes. Instead one can store the log in multiple parts with a name suffix (e.g `-1743932245` seconds since the Epoch) and set a regex to match the parts of the same log (e.g `-\d{10}$`). (optional)
0 commit comments