Skip to content

[New Rule] Loki denies large payload #29

@dosmanak

Description

@dosmanak

Description

Some large data can occur to alloy that cause the loki denies such payload.
Nice description what to tune will be greate to have.

Rule

No response

Related issues or PRs

No response

References

No response

Redacted Example Data

ts=2025-05-19T07:20:05.532795855Z level=error msg="final error sending batch" component_path=/ component_id=loki.write.endpoint component=client host=logs.sanitino.eu status=400 tenant=sanitino error="server returned HTTP status 400 Bad Request (400): Max entry size '262144' bytes exceeded for stream '{app=\"XXXXX\", container=\"XXXXXX\", filename=\"/var/log/pods/XXXXX_XXXXXX-588dc4f856-cm8t2_a5297edd-2357-40ef-9636-9c3d23d5454b/XXXXXX/1.log\", job=\"XXXXXX/XXXXXXX-588dc4f856-cm8t2\", level=\"INFO\", logger=\"ZZZZZZ\", namespace=\"XXXXXX\", pod=\"XXXXXX-588dc4f856-cm8t2\", service_name=\"XXXXXX\", stage=\"NONPROD\", stream=\"stdout\"}' while adding an entry with length '9100509' bytes"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions