LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2003, 04:52 PM   #1
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
E-mailing system logs


Okay, I have a Red Hat 8 box running SAMBA. It's administered from Webmin. I'd like to have the system logs e-mailed to me daily, but I can't get it working. I tried directing the e-mail to our mail server with no luck, then setup Postfix on the server to mail it directly to me. Still no luck. I'm kind of embarrassed to ask, but can someone tell me how to set this to my logs can be mailed to me?

Thanks a ton.
 
Old 01-28-2003, 10:09 PM   #2
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
May I suggest using logwatch? Instead of e-mailing the entire log, it parses it, and e-mails you just the log entries that look suspicious or are interesting in some manner. That way you don't have to loog through the entire log file.

If you really need the log file, however, you can probably set up a cron job to scp (secure copy) the files to your account on the remote machine.
 
Old 01-29-2003, 08:44 AM   #3
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Original Poster
Rep: Reputation: 30
Thanks. For logwatch to e-mail do I need to have a e-mail server running on the machine to send it out?

Strangely, I can e-mail from the machine just fine by either using our in-house e-mail server or by setting up Postfix to e-mail directly to me, but it just won't e-mail logs even though it appears to be setup correctly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailing daily logs via cron? ladyath Linux - General 3 03-30-2005 12:51 AM
E-mailing system logs CatherineBennet Linux - Newbie 1 09-15-2004 12:42 AM
E-mailing system logs php4u Linux - Newbie 0 09-14-2004 10:58 PM
Where are the system logs? cereal83 Slackware 3 07-17-2004 02:55 PM
System Logs NSKL Linux - General 1 06-07-2002 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration