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 cri parser fails to parse timestamp #5010

Closed
wengyao04 opened this issue Mar 7, 2022 · 5 comments
Closed

multiline cri parser fails to parse timestamp #5010

wengyao04 opened this issue Mar 7, 2022 · 5 comments

Comments

@wengyao04
Copy link

wengyao04 commented Mar 7, 2022

Bug Report

Describe the bug

Hi, we use builtin multiline parser cri in our tail plugin like

input.conf: |
    [INPUT]
      Name             tail
      Tag              kube.*
      Path             /var/log/containers/*.log
      multiline.parser cri
      DB               /var/log/flb_kube.db
      Mem_Buf_Limit    5MB
      Skip_Long_Lines  On
      Refresh_Interval 10

But we see error in

{"stream":"stderr","log":"[2022/03/07 18:30:02] [ warn] [parser:_ml_cri] invalid time format %Y-%m-%dT%H:%M:%S.%L%z for '2022-03-07T18:29:56.454636802Z'"}

Not quite sure what 2022-03-07T18:29:56.454636802Z is invalid time format.

To Reproduce

  • Rubular link if applicable:
  • Example log message if applicable:
{"log":"YOUR LOG MESSAGE HERE","stream":"stdout","time":"2018-06-11T14:37:30.681701731Z"}
  • Steps to reproduce the problem:

Expected behavior

Screenshots

Your Environment

  • Version used:
  • Configuration:
  • Environment name and version (e.g. Kubernetes? What version?):
  • Server type and version:
  • Operating System and version:
  • Filters and plugins:

Additional context

@wengyao04
Copy link
Author

Hi Do we have a timeline for #5078 ? Is it ready to be merged and create a new release ? Thanks !!

@wengyao04
Copy link
Author

Or do we have any temporary solution for parsing cri multiline log ?

@Antiarchitect
Copy link

Experiencing the same problem. New release with #5078 is desirable.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2022

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.

@github-actions github-actions bot added the Stale label Jul 6, 2022
@github-actions
Copy link
Contributor

This issue was closed because it has been stalled for 5 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants