Skip to content

Use LogSplit for logs exceeding maximum size #927

Open
@rafal-dudek

Description

@rafal-dudek

Is your feature request related to a problem? Please describe.
In our projects we are using LoggingAppender to write logs in GKE. Some of the logs are bigger than the limit and they are rejected:
ERROR: onFailure exception: com.google.cloud.logging.LoggingException: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Log entry with size 293.5K exceeds maximum size of 256.0K

Describe the solution you'd like
LoggingAppender should split the logs exceeding limit and use "split" field described in google.logging.v2 API.

Additional context
LogEntry definition with split field:
https://cloud.google.com/logging/docs/reference/v2/rpc/google.logging.v2#logentry
LogSplit definition:
https://cloud.google.com/logging/docs/reference/v2/rpc/google.logging.v2#google.logging.v2.LogSplit
Field definition in proto file:
https://github.com/googleapis/googleapis/blob/master/google/logging/v2/log_entry.proto#L183

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: loggingIssues related to the googleapis/java-logging-logback API.logging-resiliencepriority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions