Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Aug 2009
    Posts
    15

    Default AWstats LogFormat not sticking

    Hi,

    I am using a custom log format for our apache logs, but it broke stats.
    Now, I changed /usr/local/cpanel/etc/awstats.conf to account for the different format, but I guess it gets overwritten all the time.
    I even copied it to /etc/, but it doesn't work.

    Any idea how to make the changes stick?

    Thanks!

    Christoph

  2. #2
    Member
    Join Date
    Aug 2009
    Posts
    15

    Default

    Anyone? Bueller?

  3. #3
    Member
    Join Date
    Aug 2009
    Posts
    15

    Default

    Lalala. Any smart cPanel people here?

  4. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by ckoehler View Post
    Hi,

    I am using a custom log format for our apache logs, but it broke stats.
    Now, I changed /usr/local/cpanel/etc/awstats.conf to account for the different format, but I guess it gets overwritten all the time.
    I even copied it to /etc/, but it doesn't work.

    Any idea how to make the changes stick?

    Thanks!

    Christoph
    One possible method that I would consider for modifying AWStats directives is to ensure the following option is enabled via WHM then define the customizations in a user-specific include file:
    WHM: Main >> Server Configuration >> Statistics Software Configuration >> Generators Configuration
    * Allow Awstats configuration Include file
    Awstats Include file option will allow a user defined configuration file to be included at the time of statistics processesing. The include file should be place in the user's home directory at ~/tmp/awstats/awstats.conf.include. This file can be used to override and add new configuration options to Awstats.


    Related Documentation: Generators Configuration

  5. #5
    Member
    Join Date
    Aug 2009
    Posts
    15

    Default

    Thanks Don!

    I've seen this option, but the log format change was server wide, so adding a conf file per user is not feasible. Is there a way to prevent cpanel from overwriting the file all the time? Or a way to specify a different file at some other location?

    Christoph

  6. #6
    Member
    Join Date
    Aug 2009
    Posts
    15

    Default

    Anything? Surely I am not the only person with this problem.

  7. #7
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by ckoehler View Post
    Thanks Don!

    I've seen this option, but the log format change was server wide, so adding a conf file per user is not feasible. Is there a way to prevent cpanel from overwriting the file all the time? Or a way to specify a different file at some other location?

    Christoph
    Quote Originally Posted by ckoehler View Post
    Anything? Surely I am not the only person with this problem.
    I apologize for the delayed update; while researching internally I was unable to determine an easier way to accomplish the task. I believe a feature request would help best to have the enhanced functionality considered for inclusion as a native (built-in) feature.

    If needing to safely retain an edit to the default AWStats configuration file I recommend using one of the built-in hooks to execute a custom script or other custom commands that reapply the change or apply a patch. Here is our documentation regarding script hooks for cPanel and WHM:
    cPanel/WHM Script Hooks
    Here is an example of a pre hook and a post hook that could be created and used as referenced in the documentation:
    Code:
    /scripts/preupcp
    /scripts/postupcp
    For development-related inquires, (e.g., usage of hooks), I recommend the cPanel and WHM Developer Discussions forum area:
    Developer Discussions - cPanel Forums

    The following documentation regarding other built-in hooks may also be of interest:
    Hooking into cPanel Functionality
    EasyApache Hook Scripts

Similar Threads & Tags
Similar threads

  1. Custom LogFormat
    By grayloon in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-15-2009, 06:31 PM
  2. Problem in update of awstats - Problema na atualização do awstats
    By celobusana in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-26-2007, 05:49 PM
  3. Site Transfer Sticking at "Downloading Tarball"
    By Lamar in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-26-2004, 08:41 PM
  4. Sticking Virtual Host entries in a separate file?
    By movielad in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-26-2004, 10:39 AM
  5. IP's sticking after moving accounts!
    By dadman in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-22-2003, 05:35 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube