Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline logs have newlines stripped #2803

Closed
andrzej-stencel opened this issue Jan 18, 2023 · 0 comments · Fixed by #2805
Closed

Multiline logs have newlines stripped #2803

andrzej-stencel opened this issue Jan 18, 2023 · 0 comments · Fixed by #2805
Assignees
Labels
bug Something isn't working
Milestone

Comments

@andrzej-stencel
Copy link
Contributor

Version: v3.0.0-beta.1
Container runtime: containerd

Describe the bug

When running the chart v3 with the default configuration in a cluster with containerd container runtime, multiline logs end up in Sumo without newlines.

Steps to reproduce:

Run the collection with default settings in a k8s cluster with containerd container runtime.

values.yaml:

sumologic:
  accessId: xxx
  accessKey: yyy
  clusterName: zzz

Expected output:

Multiline logs from containers should contain newlines:

{
    log:"2001-02-03 04:05:06 logger 1 log 2055 first line
      logger 1 log 2055 second line
      logger 1 log 2055 third line",
    stream:"stdout",
    timestamp:1674041362246
}

Actual output:

Logs from containers do not have newlines:

{
    log:"2001-02-03 04:05:06 logger 1 log 1252 first line  logger 1 log 1252 second line  logger 1 log 1252 third line",
    stream:"stdout",
    timestamp:1674041362246
}

image

@andrzej-stencel andrzej-stencel added the bug Something isn't working label Jan 18, 2023
@andrzej-stencel andrzej-stencel added this to the v3.0 milestone Jan 18, 2023
@andrzej-stencel andrzej-stencel self-assigned this Jan 18, 2023
andrzej-stencel added a commit that referenced this issue Jan 18, 2023
andrzej-stencel added a commit that referenced this issue Jan 18, 2023
andrzej-stencel added a commit that referenced this issue Jan 18, 2023
@andrzej-stencel andrzej-stencel linked a pull request Jan 18, 2023 that will close this issue
andrzej-stencel added a commit that referenced this issue Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant