need to monitor the logs and sed mail with th

March 6, 2010 at 07:42:25
Specs: Windows XP, 512
hi all,
am new to unix, we have a unix server and lot of applications running on it. i need to monitor the logs everyday and need to send a mail with an file size and the time it got transfered to the other i need this to be automated. so can any one tell me how to parse through the logs and get the exact info alone & mail it. this is an daily activity. i will be thankfull if sumone could help me on this...thanks in advance...

See More: need to monitor the logs and sed mail with th

Report •

March 8, 2010 at 02:00:58
Please people.. Help me out....

Report •

March 8, 2010 at 07:57:44
Please be more specific about your requirements.

Report •

March 9, 2010 at 23:03:04
I have a application which is running on a unix server, it doesn't have any database, everything is stored as a flat files.
We use to send a file everyday to vendor for some settelement procedure. My job is to check the logs everyday and send a mail to the clients with the settlement amount and the time of delivery of the file which is actually captured in logs. Now i need to write program to automate it. The purpose of the program should be to monitor the logs and get those info daily and send an mail automatically. the logs are written after completion of an control m job. ie the control m job will kick of a program which will send those files to vendor. Please let me know if you need more info...

Report •

Related Solutions

March 12, 2010 at 00:50:02
Well, we need to know the structure of the log files. Post a sample of the data you're trying to extract from.

You would:

Use CRON to run the script every few minutes (or whenever)
Extract the data using CUT, AWK, GREP, or PERL
Pipe the data to SENDMAIL to send the e-mail

It's actually very simple...but without knowing the format of the log file you're trying to parse, we can't help you much more.

Report •

Ask Question