Note: I'm not a gury - don't know if this can mess things up or if there's a much better idea.
I tested to add a second "CustomLog" line in httpd config for an account and it works.
So if I install a dummy account on the server and then add a second domlogs to all other accounts in httpd that points to dummy file, I will have the stats for all accounts combined
for awstats, webalizer etc.
My dummy:
serverstats.com
In httpd:
CustomLog domlogs/serverstats.com combined
Now I add this line to all other accounts as well so stats is written to both the
accounts own logfile and to this one.
NOTE: Only a small test has been made - you do it on your own risk - I have no idea
if it will mess something up other than the logfile will be huge so you better run stats
often - depending on how heavy stats is.
Just add a cronjob: */30 * * * * /scripts/runweblogs "serverstats.com's_username".
This will run stats for this account ever 30 minutes.
QUESTION:
Is there a template for apache so I can add a line like this auto for new accounts ?
Anyone have a command we can use to add this line for all account already setup ?
I tested to add a second "CustomLog" line in httpd config for an account and it works.
So if I install a dummy account on the server and then add a second domlogs to all other accounts in httpd that points to dummy file, I will have the stats for all accounts combined
for awstats, webalizer etc.
My dummy:
serverstats.com
In httpd:
CustomLog domlogs/serverstats.com combined
Now I add this line to all other accounts as well so stats is written to both the
accounts own logfile and to this one.
NOTE: Only a small test has been made - you do it on your own risk - I have no idea
if it will mess something up other than the logfile will be huge so you better run stats
often - depending on how heavy stats is.
Just add a cronjob: */30 * * * * /scripts/runweblogs "serverstats.com's_username".
This will run stats for this account ever 30 minutes.
QUESTION:
Is there a template for apache so I can add a line like this auto for new accounts ?
Anyone have a command we can use to add this line for all account already setup ?