Webalizer telt de index niet mee

Pagina: 1
Acties:

  • misvid
  • Registratie: Augustus 2001
  • Laatst online: 06-12-2024
Probleem:

Webalizer V2.01-10 "geinstalleerd" op apache/tomcat, alles doet het. 'k Krijg mooie statistiekjes. Maar niet van de juiste pagina's :S Het gaat nl. om een jsp website. De ontwikkelaar gebruikt alleen index.jsp?etc.

Webalizer leest geen index.
# The Webalizer normally strips the string 'index.' off the end of
# URL's in order to consolidate URL totals. For example, the URL
# /somedir/index.html is turned into /somedir/ which is really the
# same URL. This option allows you to specify additional strings
# to treat in the same way. You don't need to specify 'index.' as
# it is always scanned for by The Webalizer,...
Nu vond ik 1(!) bericht van iemand (via google).
Webalizer has a feature that counts /index.* as /, since they usually produce the same output. The "index." part is hardcoded in, though you can add additional names with the IndexAlias configuration directive.

However, my RSS feed is index.rdf, and since it begins with index., webalizer counts requests to both http://ertw.com/blog/ and http://ertw.com/blog/index.rdf as one page. With this in force, there is no way for me to determine how many hits I get of people reading my blog vs people pulling it in with an RSS aggregator.

Grepping for "index" in the webalizer source showed me that it's a single line causing my problem:
add_nlist("index.",&index_alias);
http://ertw.com/blog/arch..._a_good_thing-301203.html
Vragen:
- weet iemand hoe je webalizer.exe dan kan editen? En dus die add_nlist etc. kan commenten.
- of weet iemand een andere oplossing?

BVD

ps. khad deze eerst in NOS gepost, foutje.

Macbook Pro / Dell Inspiron 6400 / HP Slimline / iPod Touch / PSP / XBOX 360


  • Spider.007
  • Registratie: December 2000
  • Niet online

Spider.007

* Tetragrammaton

Euhm... misschien kun je even bij het begin beginnen? Hoezo 'telt' hij index niet mee; en hoezo zou hij dat wel moeten doen?

---
Prozium - The great nepenthe. Opiate of our masses. Glue of our great society. Salve and salvation, it has delivered us from pathos, from sorrow, the deepest chasms of melancholy and hate


  • Sendy
  • Registratie: September 2001
  • Niet online
Als je wil kan je webalizer opnieuw compileren. Dus pak de source en lees de handleiding hoe dat moet. Makkelijk is gewoon een hexeditor pakken en die string 'index.' te overkrassen met iets dat daar niet op lijkt. Eigenlijk is dit simpel; een echte tweaker zou dit moeten kunnen.

Spider.007 > Het probleem lijkt me duidelijk.

  • misvid
  • Registratie: Augustus 2001
  • Laatst online: 06-12-2024
Euhm... misschien kun je even bij het begin beginnen? Hoezo 'telt' hij index niet mee; en hoezo zou hij dat wel moeten doen?
Spider.007 > Het gaat nl. om een jsp website. De ontwikkelaar gebruikt alleen index.jsp?etc. (like i said)
Eigenlijk is dit simpel; een echte tweaker zou dit moeten kunnen.
Sendy > ... kben ook maar een 0,0001 % tweaker ;) toch bedankt. Ik had gehoopt dat iemand dit probleem ook meegemaakt had en zijn ervaring had willen delen. Hexeditor, compileren etc. is geen alledaagse koek voor een 0,0001 % tweaker :)

Macbook Pro / Dell Inspiron 6400 / HP Slimline / iPod Touch / PSP / XBOX 360


  • Spider.007
  • Registratie: December 2000
  • Niet online

Spider.007

* Tetragrammaton

Ik ben natuurlijk erg dom; bedoel je dat er alleen URL's worden gebruikt in deze vorm:
code:
1
2
index.jsp?page=1
index.jsp?name=asdf

maar vervolgens wil je die URL's apart terug zien komen in Webalizer inplaats van onder 1 kopje 'index' of '/' :?

---
Prozium - The great nepenthe. Opiate of our masses. Glue of our great society. Salve and salvation, it has delivered us from pathos, from sorrow, the deepest chasms of melancholy and hate


  • misvid
  • Registratie: Augustus 2001
  • Laatst online: 06-12-2024
Ik ben natuurlijk erg dom ... maar vervolgens wil je die URL's apart terug zien komen in Webalizer inplaats van onder 1 kopje 'index' of '/' :?
Dom nee man, dom is als je tig duizend militairen naar iRaq stuurt.
En ja ik wil bijv. weten hoeveel mensen er op pagina.nl/index.jsp?opencats=_xx_xxx_xxx_ zijn geweest. ;)

[ Voor 10% gewijzigd door misvid op 09-07-2004 10:25 ]

Macbook Pro / Dell Inspiron 6400 / HP Slimline / iPod Touch / PSP / XBOX 360


  • Spider.007
  • Registratie: December 2000
  • Niet online

Spider.007

* Tetragrammaton

Kun je niet volstaan met het verwijderen van de regels 710 tot 726 uit webalizer.c; dat lijkt namelijk te doen wat jij niet wilt:
C:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
         /* strip off index.html (or any aliases) */
         lptr=index_alias;
         while (lptr!=NULL)
         {
            if ((cp1=strstr(log_rec.url,lptr->string))!=NULL)
            {
               if ((cp1==log_rec.url)||(*(cp1-1)=='/'))
               {
                  *cp1='\0';
                  if (log_rec.url[0]=='\0')
                   { log_rec.url[0]='/'; log_rec.url[1]='\0'; }
                  break;
               }
            }
            lptr=lptr->next;
         }

---
Prozium - The great nepenthe. Opiate of our masses. Glue of our great society. Salve and salvation, it has delivered us from pathos, from sorrow, the deepest chasms of melancholy and hate

Pagina: 1