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
/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ÿøÇÿü¿ýóïÿõŸþø‡“õ_ýý
càÍ€Žªt䷅̾Ʒ/Í€[^
I didn´t receive the attachtment, just a lotta symbols.
Thx...for your help.
Regards..
MARIO
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
also try read the man page of logrotate :)
http://www.die.net/doc/linux/man/man8/logrotate.8.html
hope this info can help
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.
ASKER