LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-03-2009, 12:00 PM   #1
shii_va
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Rep: Reputation: 16
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
 
Old 09-04-2009, 05:52 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,950

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
You can use the mail command like this:
Code:
mail -s "Apache Report" user@domain.com < awstats.log
Regards
 
Old 09-05-2009, 05:24 AM   #3
shii_va
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Original Poster
Rep: Reputation: 16
Thanks for reply,

But i ca't able to do successfully.

Please need our help.
 
Old 09-05-2009, 05:29 AM   #4
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
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
 
Old 09-05-2009, 11:24 AM   #5
shii_va
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Original Poster
Rep: Reputation: 16
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.
 
Old 09-05-2009, 11:28 AM   #6
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
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
 
Old 09-07-2009, 01:19 PM   #7
shii_va
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Original Poster
Rep: Reputation: 16
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.
 
Old 09-07-2009, 03:23 PM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,950

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
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.
 
  


Reply

Tags
apache, awstats, email, log, reports


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
Grep Recursive Search Results Send To E-mail or Log? Knucklehead00 Linux - Newbie 2 06-05-2009 11:19 AM
postfix unable to send mail. log posted WOP1337 Linux - Server 1 03-15-2007 11:39 PM
Cannot send mail due to exim log file permission zahoo Linux - General 3 11-03-2005 12:42 PM
Rename/VI/Awstats Reports Usage nistelrooy Linux - General 7 07-16-2005 10:02 PM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 07:06 PM


All times are GMT -5. The time now is 01:05 PM.

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