From 81ee28d06d948289f32c6226acbaac32f6b310ce Mon Sep 17 00:00:00 2001 From: juan-coralogix <89215136+juan-coralogix@users.noreply.github.com> Date: Mon, 10 Jul 2023 09:57:04 -0300 Subject: [PATCH] Added example on CRI parsing longlogs (#242) * Added example on CRI parsing longlogs * Update logs/fluentd/k8s-helm/http/README.md Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com> * Update logs/fluentd/k8s-helm/http/README.md Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com> * Update logs/fluentd/k8s-helm/http/README.md Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com> * Update logs/fluentd/k8s-helm/http/README.md Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com> * fmt-docs update --------- Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com> --- logs/fluentd/k8s-helm/http/README.md | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/logs/fluentd/k8s-helm/http/README.md b/logs/fluentd/k8s-helm/http/README.md index 2fcdf7b4..9dcee5f0 100644 --- a/logs/fluentd/k8s-helm/http/README.md +++ b/logs/fluentd/k8s-helm/http/README.md @@ -88,3 +88,32 @@ By default this chart installs additional dependent chart: ## Coralogix Fluentd Buffer Alert In order to create an alert on Fluentd buffer in Coralogix, please see [coralogix-alert doc](https://github.com/coralogix/telemetry-shippers/blob/master/logs/fluentd/docs/coralogix-alerts.md) + +## Log Logs: containerd / CRI partial logs + +If your application is generating logs longer than 16k, you should note that the Docker driver will split the logs into multiple messages. +To resolve this, you can use the `concat` filter. + +First ensure that in the override file used to deploy the Helm chart has `logtag` as one of the regex group keys, like the following: + +```yaml + + format /^(? +``` + +If that is not the case please replace the existing one with this one. + +Then, next to the source, you'll need to add the following filter that will concat the logs: + +```yaml + + @type concat + key message + use_partial_cri_logtag true + partial_cri_logtag_key logtag + partial_cri_stream_key stream + +```