Solved

Logrotate problems

Posted on 2004-04-27
4
355 Views
Last Modified: 2010-04-20
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
0
Comment
Question by:mcaisapanta
  • 2
4 Comments
 

Author Comment

by:mcaisapanta
ID: 10934430
Do I need some aditional configuration settings?
0
 
LVL 12

Accepted Solution

by:
paullamhkg earned 250 total points
ID: 10934709
try config like this :

compress

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

0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 10934719
also try read the man page of logrotate :)

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

hope this info can help
0
 
LVL 40

Expert Comment

by:jlevie
ID: 10935192
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.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question