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