LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Server (http://www.linuxquestions.org/questions/forumdisplay.php?f=73)
-   -   How do i send mail my Apache(Awstats) log Reports (http://www.linuxquestions.org/questions/showthread.php?t=752428)

shii_va 09-03-2009 11:00 AM

How do i send mail my Apache(Awstats) log Reports
 
Dear LQ Members,

Please someone help me with exporting Apache Log File Reports with any software.

I had install awstats to my Server for generating the reports but i can't
send mail the awstats report.

Do need you help?????

Shiv

bathory 09-04-2009 04:52 AM

You can use the mail command like this:
Code:

mail -s "Apache Report" user@domain.com < awstats.log
Regards

shii_va 09-05-2009 04:24 AM

Thanks for reply,

But i ca't able to do successfully.

Please need our help.

EricTRA 09-05-2009 04:29 AM

What's the error you get when you issue the command that bathory indicated?
Also check your log files for any errors relating to the mail and post them.
What distro are you using, what mailserver? Are you relaying your mail to another server?

We need a bit more info in order to help you.

Kind regards,

Eric

shii_va 09-05-2009 10:24 AM

Thanks for the reply.....

Actually the thing is that i want export apache report via email to me.

I need some code in perl(any) so that i get daily basis mail of my apache log.

EricTRA 09-05-2009 10:28 AM

Is your server able to send out mails? Do you use that possibility with other programs on the same system? Is the log automatically generated on a daily basis or just added to a logfile that contains more than one date?

Kind regards,

Eric

shii_va 09-07-2009 12:19 PM

Sorry for Late REPLY,

Actually my Server can send a mail that's not n issue.

But i am looking for a Apache Log reader script.

Any Script/Software that reader my apache log and provide me mail on daily basis.

Need your help.

bathory 09-07-2009 02:23 PM

You said that you have awstats installed. If that's the case, you can create a daily cronjob to run awstats and mail you the reports.


All times are GMT -5. The time now is 10:45 AM.