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

Collapse multiline logs based on a start line. #3024

Merged
merged 15 commits into from
Dec 3, 2020

Commits on Dec 3, 2020

  1. Collapse multiline logs based on a start line.

    Summary:
    This is a very simple approach based on grafana#1380 to provide multiline
    or block log entries in promtail.
    
    A `multiline` stage is added to pipelines. This stages matches a start
    line. Once a start line is matched all following lines are appended
    to an entry and not passed on to downstream stages. Once a new start
    line is matched the former block of multilines is sent.
    
    If now new line arrives withing `max_wait_time` the block is flushed to
    the next stage and a new block is started.
    jeschkies committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    6e70704 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7f70762 View commit details
    Browse the repository at this point in the history
  3. Format code.

    jeschkies committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    3db919d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    851b91e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    503a0d2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dc715cb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6ac6375 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    48b09d6 View commit details
    Browse the repository at this point in the history
  9. Make linter happy.

    jeschkies committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    79c8c27 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f9ed133 View commit details
    Browse the repository at this point in the history
  11. Update pkg/logentry/stages/multiline.go

    Co-authored-by: Cyril Tovena <cyril.tovena@gmail.com>
    jeschkies and cyriltovena authored Dec 3, 2020
    Configuration menu
    Copy the full SHA
    ca7ad81 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c07875e View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    2c4dc8e View commit details
    Browse the repository at this point in the history
  14. Wrap all debug logs.

    jeschkies committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    bb1cf59 View commit details
    Browse the repository at this point in the history
  15. Format code.

    jeschkies committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    138371b View commit details
    Browse the repository at this point in the history