Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

prblems to understand syntax

Reply to Post Add a New Topic
UserPost

1:26 pm
October 18, 2010


kaidr

Member

posts 4

Hi, I triad and get a lot of errors to count the hits from my internal search.
 
172.16.0.115 – - [18/Oct/2010:11:45:15 +0200] "GET /cgi-bin/images/htdig.gif HTTP/1.1" 404 1484 "http://forschungszentrum/cgi-bin/htsearch?config=&restrict=&exclude=&method=and&format=builtin-long&sort=score&words=test" "Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.4.1 Firefox/3.5.9"
 
I want to count the word on the marked position (e.g. test) like Keywords for external search engines.
 
IExtraSectionName1="Top 50 Intranet Suche"
ExtraSectionCodeFilter1="200 304"
ExtraSectionCondition1="URL,\\words="
ExtraSectionFirstColumnTitle1="Suchbegriff Intranet"
ExtraSectionFirstColumnValues1="URL,\\words=([^&]+)"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=HB
ExtraSectionAddAverageRow1=0
ExtraSectionAddSumRow1=1
 
This is my base extra section.
 
I think I have to change the ExtraSectionCondition1 to tell awstats witch line to use and ExtraSectionFirstColumnValues1 to identify the value is this right?
 
Is this syntax like SED?

2:10 pm
October 18, 2010


Jean-Luc

Admin

posts 1125

Hi again,

 

I would replace URL by URLWITHQUERY like this:

ExtraSectionCondition1="URLWITHQUERY,&words="



ExtraSectionFirstColumnValues1="URLWITHQUERY,&words=([^&]+)"

I also replaced the backslashes by an ampersand.

I did not test it. Let me know if it helps.

2:29 pm
October 18, 2010


kaidr

Member

posts 4

Unfortunaly, it doesn’t work.
 
I use ../cgi-bin/htsearch?config=&restrict=&exclude=&method=and&format=builtin-long&sort=score&words=test to get an entry in apache .log. and after I updated my awstats.
 
Meby I have to look after an alternative search for my intranet, do you have an idea witch will work for me?

2:37 pm
October 18, 2010


kaidr

Member

posts 4

After & must words

ExtraSectionFirstColumnValues1="URLWITHQUERY,&words=([^&]+)"

and it works fine.

2:58 pm
October 18, 2010


Jean-Luc

Admin

posts 1125

Yep. It was a typing mistake. I corrected my post. Thanks.

Reply to Post

Reply to Topic:
prblems to understand syntax

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
11 + 5
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
15 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)