Skip to content

Add configuration for agent log file size, rollover strategy and retention policy #1880

Closed
@tippmar-nr

Description

@tippmar-nr

Describe the story, please be clear on scope of the story.

File size limits and rollover strategy are currently hard-coded in the agent, at 50MB per file, with an unlimited number of files being retained.

Serilog supports an array of options for log file rolling, including by day or by size. We should add configuration settings to allow customers to tailor agent log file policies to their liking.

The Java agent already exposes a number of logging configuration options - we should consider using similar options.

Acceptance Criteria

Log file size, rollover strategy and retention policy should be configurable, with a reasonable set of default values.

Estimates

Please provide initial t-shirt size
S

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