Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-12-2006, 04:32 AM   #1
LQ Newbie
Registered: May 2006
Posts: 8

Rep: Reputation: 0
syslog to email at @ yahoo or gmail


i have one linux box at a remote office. it's mainly running samba. there will be a syslog everyday. before this, i used to loged in and check the root email to see the syslog. it's very useful.

but now, i could not do so because i had been transfer to another branch. it is possible to configure the syslog to e-mail all the log to my gmail or yahoo account? i've been searching the web, but no use.

Old 12-12-2006, 04:39 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Surely is; you'll need to find the config file or where it's defined to whom the syslog is sent to (no, I don't think it's always automatically root, since there could be systems where root account is not used much), and alter the receiver's address from "root@localhost" or something similar (which points to the machine's own root account's mail) to your gmail address.

Be aware, though, that the mail is probably sent unencrypted so if it contains any crucial information that you can't reveal to anybody or everybody, i.e. if you don't like the idea of your neighbours 17-year-old kid ketting his hands on it, don't send it out over the web if you can't encrypt it.

Since syslog may well include some information you don't want to reveal to others, I encourage you to think a way to encrypt the message before sending and decrypt it when you receive it, or drop the idea. You could write a cron-timed shell script to grab the information, encrypt and then mail it, and that's probably a wise thing to do in this case.
Old 12-13-2006, 11:43 PM   #3
LQ Newbie
Registered: May 2006
Posts: 8

Original Poster
Rep: Reputation: 0
i've tried, but no luck. it does not works. here is my syslog.conf:

*.emerg *
*.emerg *

uucp,news.crit /var/log/spooler

local7.* /var/log/boot.log

news.=crit /var/log/news/news.crit
news.=err /var/log/news/news.err
news.notice /var/log/news/news.notice


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
Strange problem with Yahoo and Gmail Hitboxx Fedora 4 10-15-2006 08:11 PM
Mail server implementation of gmail,yahoo etc... naveenrajn Linux - General 0 01-10-2006 02:27 AM
yahoo gmail access problem in Fedora core 2 nmafzal Linux - General 1 01-02-2006 05:05 PM
yahoo marks Gmail messages as spam arunswarup General 8 11-04-2005 10:45 AM
text email client that supports gmail and Yahoo LinuxLala Linux - General 1 09-01-2005 08:06 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:57 PM.

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