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

Restart filebeat when rotating HAProxy logs #703

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

daaang
Copy link
Collaborator

@daaang daaang commented Aug 2, 2024

The current contents of /etc/logrotate.d/haproxy are:

/var/log/haproxy.log {
    daily
    rotate 5
    missingok
    notifempty
    compress
    postrotate
        /usr/lib/rsyslog/rsyslog-rotate
    endscript
}

So most of this is translating from the existing logrotate config to expressing that as a puppet resource. But also, I'm adding a filebeat restart because filebeat is holding files open and filling up disks.

The current contents of /etc/logrotate.d/haproxy are:

    /var/log/haproxy.log {
        daily
        rotate 5
        missingok
        notifempty
        compress
        postrotate
            /usr/lib/rsyslog/rsyslog-rotate
        endscript
    }

So most of this is translating from the existing logrotate config to
expressing that as a puppet resource. But also, I'm adding a filebeat
restart because filebeat is holding files open and filling up disks.
@daaang daaang merged commit f3d7b19 into production Aug 2, 2024
1 check passed
@daaang daaang deleted the manage-haproxy-logrotate branch August 2, 2024 18:29
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