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

Document workable log rotation strategies until native log rotation arrives #15751

Closed
geekpete opened this issue Dec 22, 2017 · 1 comment
Closed
Labels
Team:Docs Team:Operations Team label for Operations Team

Comments

@geekpete
Copy link
Member

geekpete commented Dec 22, 2017

Describe the feature:

Provide some advice in the documentation about workable log rotation techniques for existing versions until native logrotation arrives with the fulfilment of #12259

Suggested methods might include:

Using Logrotate

First, set the pid.file option in kibana.yml to have Kibana create a process ID file (use a location where the kibana user has privileges to read/write read/to), e.g.

pid.file: "/var/log/kibana/kibana.pid"

Then using logrotate, add an entry to logrotate.conf, such as:

/var/log/kibana/kibana.stdout {
    daily
    copytruncate
    compress
    missingok
    notifempty
    sharedscripts
    postrotate
    /bin/kill -HUP $(cat /var/log/kibana/kibana.pid 2>/dev/null) 2>/dev/null
    endscript
}

Refer to Linux documentation for your logrotate customization needs.

@timroes timroes added the Team:Operations Team label for Operations Team label Aug 17, 2018
@gchaps
Copy link
Contributor

gchaps commented Dec 20, 2019

Closing this issue because support fo log rotation was added with PR #49750.

@gchaps gchaps closed this as completed Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Docs Team:Operations Team label for Operations Team
Projects
None yet
Development

No branches or pull requests

3 participants