Solved

Logrotate problems

Posted on 2004-04-27
4
326 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
Comment Utility
Do I need some aditional configuration settings?
0
 
LVL 12

Accepted Solution

by:
paullamhkg earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
What is ISQL? 6 99
Apache,  not running php on top level 14 53
Secure host to host communication 5 59
LINUX, CPANEL & WHM 5 18
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now