From 252229de6e90889e659d8569c902928c833c4ab0 Mon Sep 17 00:00:00 2001 From: Christoph Kleineweber Date: Fri, 2 Feb 2024 13:06:15 +0100 Subject: [PATCH] docs: Add OTLP Logs PoC documentation (#762) Co-authored-by: Stanislav Khalash Co-authored-by: Natalia Sitko <80401180+nataliasitko@users.noreply.github.com> --- docs/contributor/assets/otel-logs-values.yaml | 131 ++++++++++++++++++ docs/contributor/pocs/otlp-logs.md | 106 ++++++++++++++ 2 files changed, 237 insertions(+) create mode 100644 docs/contributor/assets/otel-logs-values.yaml create mode 100644 docs/contributor/pocs/otlp-logs.md diff --git a/docs/contributor/assets/otel-logs-values.yaml b/docs/contributor/assets/otel-logs-values.yaml new file mode 100644 index 000000000..470608bb9 --- /dev/null +++ b/docs/contributor/assets/otel-logs-values.yaml @@ -0,0 +1,131 @@ +mode: daemonset + +presets: + logsCollection: + enabled: true + kubernetesAttributes: + enabled: true + extractAllPodLabels: true + +config: + receivers: + filelog: + include: [ /var/log/pods/*/*/*.log ] + exclude: [] + # Exclude collector container's logs. The file format is /var/log/pods/__//.log + start_at: end + retry_on_failure: + enabled: true + include_file_path: true + include_file_name: false + operators: + # Find out which format is used by kubernetes + - type: router + id: get-format + routes: + - output: parser-docker + expr: 'body matches "^\\{"' + - output: parser-crio + expr: 'body matches "^[^ Z]+ "' + - output: parser-containerd + expr: 'body matches "^[^ Z]+Z"' + # Parse CRI-O format + - type: regex_parser + id: parser-crio + regex: '^(?P