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

log/loki: limit line size #2475

Merged
merged 3 commits into from
Jul 27, 2023
Merged

log/loki: limit line size #2475

merged 3 commits into from
Jul 27, 2023

Commits on Jul 26, 2023

  1. app/log/loki: limit line size

    This commit limits the maximum size of each single log line to 4096 bytes in production workloads (i.e. for consumers of `loki.New()`).
    
    This prevents pushing log lines too long for our instance of Loki, avoiding potential DoS.
    
    As with batchMax, maxLogLineLen is not configurable except in tests.
    gsora committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    d78f570 View commit details
    Browse the repository at this point in the history
  2. cleanup

    gsora committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    7a0f65d View commit details
    Browse the repository at this point in the history
  3. cleanup

    gsora committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    cff365d View commit details
    Browse the repository at this point in the history