[SAC] Awstats of download.osgeo.org

Hi there,
first of all congratulations to all of you for keeping up
the osgeo services: good job!

This mail is ask who's in charge of the awstats config on
the download service and how those stats are meant to be
accessed / read.

The wiki page [1] doesn't tell:
http://wiki.osgeo.org/wiki/Download_Server#Access_Log_Viewer_.28awstats.29

The configuration file suggests the files are in
/osgeo/download/logs

Only one html file can be found under that dir, but seems to only have
stats for 2007.

Is anyone maintaining it ?

Thanks in advance.

--strk;

  () Free GIS & Flash consultant/developer
  /\ strk's services

On 05/25/2011 06:27 AM, Sandro Santilli wrote:

Hi there,
first of all congratulations to all of you for keeping up
the osgeo services: good job!

This mail is ask who's in charge of the awstats config on
the download service and how those stats are meant to be
accessed / read.

The wiki page [1] doesn't tell:
http://wiki.osgeo.org/wiki/Download_Server#Access_Log_Viewer_.28awstats.29

The configuration file suggests the files are in
/osgeo/download/logs

Only one html file can be found under that dir, but seems to only have
stats for 2007.

Is anyone maintaining it ?

Thanks in advance.

--strk;

  () Free GIS & Flash consultant/developer
  /\ http://strk.keybit.net/services.html

I went through recently and brought them up to date.
See ticket http://trac.osgeo.org/osgeo/ticket/634 for more details.

The files are indeed in /osgeo/download/logs but looks like you wouldn't
see that without sudo usage for some reason. Ah and the files are txt,
the perl script reads those to make the web pages on the fly ( I think).

http://download.osgeo.org/cgi-bin/awstats.pl?config=www.download.osgeo.org

Thanks,
Alex

On Wed, May 25, 2011 at 09:12:39AM -0700, Alex Mandel wrote:

On 05/25/2011 06:27 AM, Sandro Santilli wrote:

> This mail is ask who's in charge of the awstats config on
> the download service and how those stats are meant to be
> accessed / read.

...

I went through recently and brought them up to date.
See ticket #634 (Trouble with awstats on download server) – OSGeo for more details.

The files are indeed in /osgeo/download/logs but looks like you wouldn't
see that without sudo usage for some reason. Ah and the files are txt,
the perl script reads those to make the web pages on the fly ( I think).

http://download.osgeo.org/cgi-bin/awstats.pl?config=www.download.osgeo.org

I think it would be nice to get that aliased as:

http://download.osgeo.org/stats

It should be possible by fixing the config file to match the hostname.
This already works if you map "www.download.osgeo.org" locally
(DNS doesn't resolve it).

I haven't found any reference to "www" in the configuration files found
under /etc/awstat but there is a -config=www.download.osgeo.org in the
cron job running every 4 hours, and it's possibly the configuration file
itself enforcing that name.

That said, it would be nice to get it to work w/out the need for explicily
setting a 'config' parameter in query string, so it'd be aliasable.

A possible way to get there could be:

(1) disable the cron job
(2) rename the configuration file to strip the 'www' part
(3) backup existing log dir
(4) rename all *www.download* logs to strip the 'www' part
(5) test http://download.osgeo.org/cgi-bin/awstats.pl
(6) if everything went fine (you can see all logs from 2007 to 2011)
     then write a new cron job to use the new configuration

--strk;

  () Free GIS & Flash consultant/developer
  /\ strk's services

On 05/25/2011 09:42 AM, Sandro Santilli wrote:

On Wed, May 25, 2011 at 09:12:39AM -0700, Alex Mandel wrote:

On 05/25/2011 06:27 AM, Sandro Santilli wrote:

This mail is ask who's in charge of the awstats config on
the download service and how those stats are meant to be
accessed / read.

...

I went through recently and brought them up to date.
See ticket http://trac.osgeo.org/osgeo/ticket/634 for more details.

The files are indeed in /osgeo/download/logs but looks like you wouldn't
see that without sudo usage for some reason. Ah and the files are txt,
the perl script reads those to make the web pages on the fly ( I think).

http://download.osgeo.org/cgi-bin/awstats.pl?config=www.download.osgeo.org

I think it would be nice to get that aliased as:

http://download.osgeo.org/stats

It should be possible by fixing the config file to match the hostname.
This already works if you map "www.download.osgeo.org" locally
(DNS doesn't resolve it).

I haven't found any reference to "www" in the configuration files found
under /etc/awstat but there is a -config=www.download.osgeo.org in the
cron job running every 4 hours, and it's possibly the configuration file
itself enforcing that name.

That said, it would be nice to get it to work w/out the need for explicily
setting a 'config' parameter in query string, so it'd be aliasable.

A possible way to get there could be:

(1) disable the cron job
(2) rename the configuration file to strip the 'www' part
(3) backup existing log dir
(4) rename all *www.download* logs to strip the 'www' part
(5) test http://download.osgeo.org/cgi-bin/awstats.pl
(6) if everything went fine (you can see all logs from 2007 to 2011)
     then write a new cron job to use the new configuration

--strk;

I wrote the cronjob and the configuration file. At the time there didn't
appear to be any reason other than to use the standard notation I had
seen in use elsewhere. So yes if you change the cronjob and rename the
config file, and the awstats logs it will work just fine.

As I mentioned in IRC this seems fine to me if it makes the urls saner.
Course we could also just make redirects.

What I'm really curious about is if this name change works for all
domains on a given server assuming cgi-bin has been configured in the
vhost of each one so that say on projects:
grass.osgeo.org/stats/awstats.pl

Strk, if you want to help and there are no objections I'd be happy to
spend an hour or 2 this weekend taking care of this with you.

Thanks,
Alex

On Wed, May 25, 2011 at 12:46:31PM -0700, Alex Mandel wrote:

What I'm really curious about is if this name change works for all
domains on a given server assuming cgi-bin has been configured in the
vhost of each one so that say on projects:
grass.osgeo.org/stats/awstats.pl

I think it should be:

grass.osgeo.org/stats/

And yes, I belive it should work automatically so that:

grass.osgeo.org/stats -- uses awstat.grass.osgeo.org.conf
geos.osgeo.org/stats -- uses awstat.geos.osgeo.org.conf

Strk, if you want to help and there are no objections I'd be happy to
spend an hour or 2 this weekend taking care of this with you.

I try not to work during weekends (and shouldn't be writing mails
at 10:20pm either actually.. ouch!)

--strk;

  () Free GIS & Flash consultant/developer
  /\ strk's services