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

add hourly logrotate_frequency #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pad92
Copy link

@pad92 pad92 commented Dec 31, 2024


name: Pull request
about: add hourly logrotate_frequency


Describe the change
add hourly logrotate_frequency

Testing
In case a feature was added, how were tests performed?

  • Apply change on Ubuntu 20.04.6 LTS with :
logrotate_frequency: hourly
logrotate_entries:
  - name: rsyslog
    path: |-
      /var/log/messages
      /var/log/secure
      /var/log/maillog
      /var/log/cron
      /var/log/boot.log
      /var/log/auth.log
      /var/log/syslog
    postrotate: /usr/lib/rsyslog/rsyslog-rotate
    missingok: yes
    frequency: hourly
    minsize: 1M
    maxsize: 10M
    keep: 7
  • Check logrotate.timer status
● logrotate.timer - Daily rotation of log files
     Loaded: loaded (/lib/systemd/system/logrotate.timer; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/logrotate.timer.d
             └─override.conf
     Active: active (waiting) since Tue 2024-10-29 09:49:19 UTC; 2 months 2 days ago
    Trigger: Tue 2024-12-31 12:00:00 UTC; 45min left
   Triggers: ● logrotate.service
       Docs: man:logrotate(8)
             man:logrotate.conf(5)

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

Successfully merging this pull request may close these issues.

1 participant