newsyslog keep owner:group

Hi,

I have this line in newsyslog.conf :
Code:
/var/log/httpd-clients/*/*-error-php.log                        600  3     *    @T00  BJG

each file has different owner:group

But, all rotation change the owner:group of the file to root:wheel
I can't set "owner:group" in newsyslog.conf because every files will have the same owner:group.
I can't write each files in newsyslog.conf, because there are too many

So, How can I keep the owner:group of files after rotation ?

thanks you
 
nORKy said:
So, How can I keep the owner:group of files after rotation ?

A custom script? As you already realised, you can only define user and group once for a given newsyslog entry so you don't have any options with that... A custom script should be fairly straight forward though...

Andy.
 
Back
Top