AWstats and apache - log single domains instead of all traffic

Discussion in 'Traffic Analysis' started by MrCalc, Dec 12, 2007.

  1. #1
    Im wondering how I set up AWstats to report for every single domains instead of logging all traffic from apache.

    I would rather have it log each website in own stat instance..

    Anyone know how to set it up ?
     
    MrCalc, Dec 12, 2007 IP
  2. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you have a different log file per domain ?

    Jean-Luc
     
    Jean-Luc, Dec 12, 2007 IP
  3. MrCalc

    MrCalc Active Member

    Messages:
    385
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #3
    No not at the moment, but guess its easy to set up in the vhost file ? (own box running apache)
     
    MrCalc, Dec 13, 2007 IP
  4. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #4
    Have you tried switching to Google Analytics? People say it's more accurate, and it does a pretty good job with rich statistics and graphics. And you can set it up to separate the stats for each of your domains.
     
    Clive, Dec 13, 2007 IP
  5. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can either add the host name in the common log file or create a log file for each host. Up to you. AWStats supports both configurations.

    It is a bit easier to keep the common log file:

    1. add this line in httpd.conf:
    LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" virtual

    2. edit the existing CustomLog line in httpd.conf and replace it with:
    CustomLog /var/log/httpd/access_log virtual

    3. edit the LogFormat in your AWStats config file:
    LogFormat = "%virtualname %host %other %logname %time1 %methodurl %code %bytesd %refererquot
    quot"

    4. edit SiteDomain and HostAliases accordingly in your AWStats config file.

    Jean-Luc
     
    Jean-Luc, Dec 13, 2007 IP
    MrCalc likes this.
  6. MrCalc

    MrCalc Active Member

    Messages:
    385
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Clive: Already using it ;-) But I like to be in control and monitor everything heheh

    Jean-luc: Somehow I would rather have seperate log files for each domain, seems easier for me. But this will do for now.
    Thanks a lot, I will give it a try later today.
     
    MrCalc, Dec 13, 2007 IP