I have one file localhost.conf with multiple log files which i would like run my awstats but my log files are of a different format, how make with logresolve.pl ?
I have one log file which i want analyse :
/var/log/httpd/access_log
and i have a directory with several file PC1-01.gz, PC1-02.ge, PC2-01.gz … which i want analyse too.
I have no magic solution here. If you need to merge log files of totally different formats, you have to convert these files to a common format before you pass them to logresolvemerge.
Wherever possible, I would prefer to configure the servers so that they generate the logs in the same format anyway.
Is Awstats_buildstaticpages.pl able to accumulate statistics / reports of previous months although it only generates reports for a single month? If yes, should I only specify the same path for the "-dir" option with awstats_buildstaticpages.pl ?
I have another problem: I want to generate AWStats reports on the 30 or 31 of the months with two different configuration files, as you noticed me Jean-Luc,
thank you.
Therefore I don't use logresolveme.pl but instead I have this in one of my conf files:
My files are all in the same format, for example:
file01-YYYY-MM-DD.gz
file02-YYYY-MM-DD.gz
file03-YYYY-MM-DD.gz
…
I would like to either configure my logFile they take only the files of the current month or either configure my logFile in order to take all the files in a directory format "YYYY-MM" that I could create before.
I don't know if both solutions are possible?
Okay, I will try to briefly explain a few tihings about AWStats:
when you run an AWStats update, some log files are read and the AWStats database files are updated
from the AWStats database files, you can dynamically generate dynamic report with awstats.pl
from the AWStats database files, you can also generate files containing the static HTML reports
there is one file per month in the AWStats database
So, if you want static files (HTML reports),  you have two major steps:
data in log files => build the database files
database files => build the HTML reports
Step 1 must be run chronologically (you cannot go back in the time). Your LogFile directive must specify the appropriate files.
Step 2 can be run at any time to generate the reports for any month.
Note that, in some cases, buildstaticpages can perform both steps with one command.
Please read the part about LogFormat in the awstats.model.conf file where they explain the %YYYY, %MM and %DD parameters. Also read the section Building and reading reports in AWStats documentation.
If you have two sets of log files and if you want two sets of reports, you need to use two different AWStats config files.
Do not to try to build a complex setup before you have successfully build less complicated configurations. Solving one problem at a time will probably be more effective.
I dont' know if I understood everything but I cannot understand why you say "can not go back in the time". That means I could never generate reports for the month of July 2009 because they were not treated in July 2009 by awstats.pl that means they are not in the database files?
So what is the interest in options to specify LogFormat YYYY MM DD ? That is only if he event logs are already in the database? "
Is what I can about a file awstats.localhost.html reports make visible the entire year and on logs generated since a year but never treated so far by awstats and therefore not stored in the database awstats ?
Can I generate reports on one year with awstatsbuildstaticpages.pl on a single report awstats.localhost.html ?
I have looked awstats.pl
I quote: "If you want to build a report for a Particular month, add the options-month = MM-year = YYYY"
it becomes blurred with what you said: "(You Can not Go Back In The Time)" ????
When I said "you cannot go back in the time", I meant that you cannot generate the database files for June after you have generated the database files for July or August.
Assume you just installed AWStats today. Then you have to generate the database files starting from the oldest log file you have. If it is March 2010, you have to run the AWStats updates (= generate the database files) for March, then April, then May, June, July,… You cannot run the AWStats update of July first and then June or May.
I hope this is more clear.
Note that this only applies to the generation of the AWStats database files. You can generate the static HTML reports whenever you want.
1. You generate database files with AWStats update commands, like
./awstats.pl -config=my_domain – update
2. The database files are in the DirData directory (defined in the AWStats config file). To empty this directory, delete its content or move it to another directory.