1/6/2024 0 Comments Awstats apache log format# %DD-n is replaced with day we were n hours ago # %MO-n is replaced with 3 letters month we were n hours ago # %MM-n is replaced with 2 digits month we were n hours ago # %YY-n is replaced with 2 digits year we were n hours ago # %YYYY-n is replaced with 4 digits year we were n hours ago # depending on date or time (Replacement is made by AWStats at the beginning # You can also use tags in this filename if you need a dynamic file name # Possible values: A full path, or a relative path from directory. # "LogFile" contains the web, ftp or mail server log file to analyze. # MAIN SETUP SECTION (Required to make AWStats work) # the config value in an AWStats running session and can be used like others. # Note that environment variable AWSTATS_CURRENT_CONFIG is always defined with # it with its value when reading it), follow the example: # To include an environment variable in any parameter (AWStats will replace # Unix/Linux) or same directory than (Windows, Mac, Unix/Linux.) # The config file must be in /etc/awstats, /usr/local/etc/awstats or /etc (for # to setup AWStats (See documentation in docs/ directory). # Copy this file into awstats.and edit this new config file Setup ('./' file, web server or permissions) may be wrong.Ĭheck config file, permissions and AWStats documentation (in 'docs' directory).this is my awstat conf This means each line in your web server log file need to have "combined log format" like this:ġ11.22.33.44 - "GET / HTTP/1.1" 200 1234 "" "Mozilla/4.0 (compatible MSIE 5.01 Windows NT 5.0)"Īnd this is an example of records AWStats found in your log file (the record number 50 in your log):ġ27.0.0.1 - "POST /RPC2 HTTP/1.0" 404 307 Your log file /var/log/httpd/access.log must have a bad format or LogFormat parameter setup does not match this format. Searching new records from beginning of log file.ĪWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log. Phase 1 : First bypass old records, searching new record. Code: Create/Update database for config "./" by AWStats version 6.8 (build 1.910)įrom data in log file "/var/log/httpd/access.log".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |