-   Linux - Server (
-   -   How do i send mail my Apache(Awstats) log Reports (

shii_va 09-03-2009 12:00 PM

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?????


bathory 09-04-2009 05:52 AM

You can use the mail command like this:

mail -s "Apache Report" < awstats.log

shii_va 09-05-2009 05:24 AM

Thanks for reply,

But i ca't able to do successfully.

Please need our help.

EricTRA 09-05-2009 05: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,


shii_va 09-05-2009 11: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 11: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,


shii_va 09-07-2009 01: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 03: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 02:45 PM.