Link to home
Start Free TrialLog in
Avatar of mcaisapanta
mcaisapanta

asked on

Logrotate problems

Hi...I have installed logrotate to rotate some logs, I put the configuration file something like this...

/var/log/process.log {
 daily
 rotate 3
 compress
 size=100M
 mail myuser@server.com
}

But It didn´t work when It tried to send me an e-mail, I got some like this....

from: root@server.com
to: myuser@server.com
subject: process.log.1.gz
ýçßýóoÿøÇÿü¿ýóïÿõŸþø‡“õ_ýýøó¿ü;ÂòßýÅßÿ‡øë¿üË¿ù«TÌüúÍ_o
càÍ€Žªt ䷅̾Æ·/Í€[^

I didn´t  receive the attachtment, just a lotta symbols.

Thx...for your help.

Regards..
MARIO
Avatar of mcaisapanta
mcaisapanta

ASKER

Do I need some aditional configuration settings?
ASKER CERTIFIED SOLUTION
Avatar of paullamhkg
paullamhkg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
also try read the man page of logrotate :)

http://www.die.net/doc/linux/man/man8/logrotate.8.html

hope this info can help
That's not going to work as is. 'mail' is a very simple program that isn't "attachment aware" and it simply mailed you the compressed data "as is". Either don't compress the log, which will send it as plain text, or compress and then uuencode the log.