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

logrotate: should allow reading log file list from file/command #222

Open
cgzones opened this issue Aug 23, 2018 · 1 comment
Open

logrotate: should allow reading log file list from file/command #222

cgzones opened this issue Aug 23, 2018 · 1 comment
Labels

Comments

@cgzones
Copy link
Member

cgzones commented Aug 23, 2018

Based on https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=50044, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=326421 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=353663:

Multiple people suggested a feature applying a configuration to an (at configuration time) unknown list of files. Either this set can be read from a file or retrieved from a command:

</tmp/apache-logfiles {  # read from file
    monthly
    ...
}
`/usr/sbin/syslogd-listfiles --weekly` {  # read from command output
    weekly
    ...
}
@include /var/cache/syslog/filelist {  # read from file
    daily
    ...
}
@kdudka
Copy link
Member

kdudka commented Aug 23, 2018

You can either use the include configuration directive for this, or just generate logrotate's configuration from a template prior to running logrotate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants