Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using redhat 9,every os distribution we have some log files
for example squid ,vsftp for every service there will be some log
files respectively.So i need to get the log files in the email
for every respective time.
Thanks & Regards
winxandlinx
Log file for email located in /var/log/maillog
so if you mean u want to get an email about your log every respective time, then u can make a script which will email email's log file to you and run it in crontab.
for every service there will be some log files respectively.So i need to get the log files in the email for every respective time.
Ok, you need to have the log files for some service emailed to you "every respective time".
I'm not sure what you mean by every respective time. Every time what? The log is rotated? A new entry is made? Every hour?
Take a look at the "cron" and "logwatch" tools. cron will allow you to schedule events, and logwatch will allow you to run scripts when certain entries are found in logs.
hi I need something like that too and I just started searching but if anyone had any idea how to do it I would like to have a hand
I think what he needs is what I am looking for:
"I need a script that would go thru a set of predetermined files, check for suspicious activities (using keywords) and, if anything is found send an email to me so I can log in and check what is going on."
I believe this is what he wants. If not, I am sorry for hijacking your post
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.