newsyslog and wildcards

Hello.

I have to rotate some logs. The problem is these logs are on different paths. Example:
/var/www/site1/log
/var/www/site2/log
/var/www/site3/log

The newsyslog.conf manpage says:
G indicates that the specified logfile_name is a shell pattern, and that newsyslog(8) should archive all filenames matching that pattern using the other options on thisline. See glob(3) for details on syntax and matching rules.

So, I tried:
Code:
/var/www/*/log                640   7     *   @T05  GJC

But it does not work :-( My logs are never rotated.

Have you any ideas?

Regards,
 
I don't use this option, but you could derive clues from [cmd=]newsyslog -nv[/cmd].
 
Back
Top