Re: Log rotation and combining...

2017-11-21 Thread SH Development
No, I’m not using selinux. I didn’t set up the logging to be under /home so I don’t know why it’s going there. I do know it’s been there for many years. Hence, my question about where it SHOULD be and if it can be combined with the maillog. Ethon > On Nov 18, 2017, at 9:47 AM, Tom Hendrikx

Re: Log rotation and combining...

2017-11-18 Thread Tom Hendrikx
HI, Do you have selinux activated? Maybe the context for logrotate does not allow accessing files under /home, and the root cli is not troubled by such a limitation? Why are you storing log files under /home anyway? Note: I don't use any OS with selinux, so can't really help with fixing this an i

Re: Log rotation and combining...

2017-11-17 Thread SH Development
So, the question is, why can I rotate the log manually, but cron returns a permission error? Do I need to tell cron to run it as sudo or something like that? Ethon > On Nov 17, 2017, at 2:29 AM, Tom Hendrikx > wrote: > > Hi, > > > Your crontab should normally mai

Re: Log rotation and combining...

2017-11-17 Thread Tom Hendrikx
Hi, Your crontab should normally mail you error output. But you can also run the logrotate command manually, in verbose mode. Kind regards, Tom On 17-11-17 03:35, SH Development wrote: > That doesn’t seem to work either. Where do I find logs for log rotation to > see the reason it fa

Re: Log rotation and combining...

2017-11-16 Thread SH Development
That doesn’t seem to work either. Where do I find logs for log rotation to see the reason it failed? Ethon > On Nov 16, 2017, at 7:53 PM, Bill Shirley > wrote: > > I believe you need a 'create' statement to set the permissions. Here > is an example for ma

Re: Log rotation and combining...

2017-11-16 Thread Bill Shirley
I believe you need a 'create' statement to set the permissions. Here is an example for mariadb: /var/log/mariadb/general.log /var/log/mariadb/slow_query.log /var/log/mariadb/error.log /var/log/mariadb/mariadb.log {     create 640 mysql mysql     daily     minsize 30M     notifempty