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.conf #38

Closed
Spunkyount opened this issue Dec 27, 2019 · 3 comments
Closed

logrotate.conf #38

Spunkyount opened this issue Dec 27, 2019 · 3 comments

Comments

@Spunkyount
Copy link

CentOS Linux release 7.7.1908 (Core)
10.1.43-MariaDB
PHP 7.0.33 (cli)

Hi, where should the logrotate.conf be placed exactly? I'm kinda puzzled by this one.

Thanks

@Empornium
Copy link
Owner

@Spunkyount
Copy link
Author

Spunkyount commented Dec 28, 2019

Thanks for that. I assume now that I just need to edit the current /etc/lograte.conf and add to it the contents of your example /etc/lograte.conf is that correct?

# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# use date as a suffix of the rotated file
dateext

# uncomment this if you want your log files compressed
#compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp and btmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
	minsize 1M
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0600 root utmp
    rotate 1
}

# system-specific logs may be also be configured here.

/var/log/luminance/*.log {
        daily
        missingok
        rotate 52
        compress
        delaycompress
        notifempty
        create 640 nginx nginx
}```

@Empornium
Copy link
Owner

You can do that but it's not recommended, simply put the luminance logrotate.conf file into the logrotate.d directory and name it appropriately.

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

2 participants