Skip to content

Log rotation in multi replica environment #822

@pavigor

Description

@pavigor

Describe your Issue

I have NC deployed in 2 replicas, each replica has it's own ephemeral storage for logs.

`logfile` => `/tmp/nextcloud`,
'log_rotate_size' => 10485760,
'logfile_audit' => '/tmp/audit.log'

I faced the problem that CronJob can't do log rotation, because it doesn't have access to each ephemeral storage.

My plan B is to write logs from each replica into common PVC, but then I can't differentiate logs from replicas, it doesn't have field like host / hostname.

Any ideas ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions