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

"create" cannot be configured in logrotate.conf #26

Open
jqiuyin opened this issue Dec 19, 2024 · 0 comments
Open

"create" cannot be configured in logrotate.conf #26

jqiuyin opened this issue Dec 19, 2024 · 0 comments

Comments

@jqiuyin
Copy link

jqiuyin commented Dec 19, 2024

Describe the bug

"create" in logrotate.conf is fixed


set create: false in entry conf will not change the global config

logrotate_entries:
  - name: remote-linux-syslog
    path: "/var/log/linux_syslog/*/message"
    frequency: weekly
    compress: true
    create: false
    keep: 48
    dateext: yes
    missingok: true
    sharedscripts: true
    postrotate: "/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true"

if one log file is empty, logrotate will pack an empty file again and again
like this:
image

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

No branches or pull requests

1 participant