From 037c6671afc6e9f4d2efca9e3abdd6393c909f87 Mon Sep 17 00:00:00 2001 From: dhgautam99 <66953383+dhgautam99@users.noreply.github.com> Date: Sat, 15 Jun 2024 00:57:31 +0530 Subject: [PATCH] Corrected tuning config implementation YAML clf.spec.tuning doesn't exist in the product but the correct way of defining the tuning config is clf.spec.outputs.tuning ~~~ $ oc explain clusterlogforwarder.spec.tuning GROUP: logging.openshift.io KIND: ClusterLogForwarder VERSION: v1error: field "tuning" does not exist ~~~ ~~~ $ oc explain clusterlogforwarder.spec.outputs.tuning GROUP: logging.openshift.io KIND: ClusterLogForwarder VERSION: v1FIELD: tuning DESCRIPTION: Tuning parameters for the output. Specifying these parameters will alter the characteristics of log forwarder which may be different from its behavior without the tuning. ~~~ Same has been corrected in this PR. --- modules/logging-delivery-tuning.adoc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/modules/logging-delivery-tuning.adoc b/modules/logging-delivery-tuning.adoc index 49db092ad44a..8fa90694bef1 100644 --- a/modules/logging-delivery-tuning.adoc +++ b/modules/logging-delivery-tuning.adoc @@ -25,12 +25,16 @@ kind: ClusterLogForwarder metadata: # ... spec: - tuning: - delivery: AtLeastOnce # <1> - compression: none # <2> - maxWrite: # <3> - minRetryDuration: 1s # <4> - maxRetryDuration: 1s # <5> + outputs: + - name: tuned-example-output + tuning: + delivery: AtLeastOnce # <1> + compression: none # <2> + maxWrite: # <3> + minRetryDuration: 1s # <4> + maxRetryDuration: 1s # <5> + type: http + url: http://example.http.com:8080 # ... ---- <1> Specify the delivery mode for log forwarding.