LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Awstats with sendmail help (https://www.linuxquestions.org/questions/linux-software-2/awstats-with-sendmail-help-296398/)

gquiring 03-01-2005 02:49 PM

Awstats with sendmail help
 
I am trying to configure awstats for a sendmail log. I am using the perl script to convert the maillog. awstats.pl output:

Error: Your personalized LogFormat does not include all fields required by AWStats (Add %host in your LogFormat string).

Below is a snip from my /etc/awstats config file. I had the host setup in the LogFormat line. I am using this page as my reference:

http://awstats.sourceforge.net/docs/..._faq.html#MAIL


LogFile="perl /var/www/html/awstats/tools/maillogconvert.pl standard < /var/log/maillog |"

LogType=M
LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=0
LevelForFileTypesDetection=0
ShowMenu=1
ShowSummary=HB
ShowMonthStats=HB
ShowDaysOfMonthStats=HB
ShowDaysOfWeekStats=HB
ShowHoursStats=HB
ShowDomainsStats=0
ShowHostsStats=HBL
ShowAuthenticatedUsers=0
ShowRobotsStats=0
ShowEMailSenders=HBML
ShowEMailReceivers=HBML
ShowSessionsStats=0
ShowPagesStats=0
ShowFileTypesStats=0
ShowFileSizesStats=0
ShowBrowsersStats=0
ShowOSStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
ShowHTTPErrorsStats=0
ShowSMTPErrorsStats=1

gquiring 03-01-2005 03:18 PM

Found it. Duplicate line LogFormat found in file.


All times are GMT -5. The time now is 12:38 PM.