Skip to content

Promtail logs are malformed with multiple backslashes when log.level=debug #1880

Closed
@christopher-grech

Description

@christopher-grech

Describe the bug
Promtail logs get malformed with multiple backslashes (...\\\\\\\\\\\\\...) whenever debug logging is enabled via the -log.level=debug command line argument.

To Reproduce
Steps to reproduce the behavior:

  1. Started Loki.
  2. Started Promtail daemon set with "-log.level=debug".

Expected behavior
When debug log level is enabled, the correct debug logs are displayed. This is proven to work whenever the same containers are run directly via a docker-compose file. However, the behaviour is totally different when ran on Kubernetes via a DaemonSet. It seems that a good number of log lines are also being omitted completely when this occurs (sample log file attached).

Environment:

  • Infrastructure: AWS EKS (Kubernetes) using Flux and a gitops repo to automatically sync deployments.
  • Deployment tool: Flux via their HelmRelease manifest, which in turn deploys a promtail DaemonSet (sample config attached)

sample-daemonset-config.txt
sample-malformed.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleA stale issue or PR that will automatically be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions