Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






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

methodurl issue

Reply to Post Add a New Topic
UserPost

1:07 pm
May 6, 2010


Benj303

Guest

Hello, 

I'm trying to get some stats on Apache Solr logs but I can't get the detail of the url contained into the log. For example, I have the line "127.0.0.1 – – [06/05/2010:11:48:18 +0000] "GET /solr/select?indent=on&version=2.2&q=test&fq=&start=0&rows=10&fl=id%2Cscore&qt=standard&wt=standard&explainOther=&hl.fl= HTTP/1.1″ 304 0″ contained in the log file.

Then, I do a "perl awstats.pl -config=SolrTest -update -showcorrupted" and see that the line has been added and then I finally do a "awstats_buildstaticpages.pl" in order to get all the html files for the report.

The issue here is that I can't see anything about the url in the html generated. I see some statistics but for example Search Keyphrases and Search Keywords return 0 result and the awstats.SolrTest.urldetail.html file show me some addresses but nothing specific.

Here is the part about LogFormat of the config file : 

LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd"

Thanks in advance

1:42 pm
May 6, 2010


Jean-Luc

Admin

posts 1043

Hi,

To see the complete URL's in the report, you need to enable URLWithQuery  in your AWStats config file:

URLWithQuery=1

To see search keywords and keyphrases, you need a %refererquot  field in the log format. You could change the Apache log format to the "Combined Log Format" that includes referrers and user agents.

2:12 pm
May 6, 2010


Benj303

Guest

Thank you a lot :)

I now have the line

http://solrtest/solr/select?indent=on&v
ersion=2.2&q=test1451&fq=&start=0&rows=
10&fl=id%2Cscore&qt=standard&wt=standar
d&explainOther=&hl.fl=

in urldetail.html corresponding to the line

127.0.0.1 -  -  [06/05/2010:12:51:24 +0
000] "GET /solr/select?indent=on&versio
n=2.2&q=test1451&fq=&start=0&rows=10&fl
=id%2Cscore&qt=standard&wt=standard&exp
lainOther=&hl.fl= HTTP/1.1" 200 561

 in the log file.

On the other hand, I still have 0 result for keywords and keywphrases.

Is it possible here to specify that a keyword is the string just after the "&q=" because what I would want here is see all the keywords that have been search and how many times.

Thanks again

6:49 pm
May 6, 2010


Jean-Luc

Admin

posts 1043

As I wrote above, the "Search" sections are populated by information coming from the referrer field. As you don't have a referrer field, these sections remain empty.

If, in your specific case, a part of your URL's contains the search keywords, you can define an extra section to generate a report counting the hits on the different keywords or keyphrases. Check the AWStats documentation about extra sections or our pages with various examples of extra sections.

9:52 am
May 7, 2010


Benj3003

Guest

Thank you, it's working now :)

Is there a way to do a match between all the numbers of an extra in order to get a bar chart or something like that ?

Thanks

Reply to Post

Reply to Topic:
methodurl issue

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:
6 + 10
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 201

Currently Online: Diggy
14 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 498
Posts: 2380

Membership:

There are 2068 Members
There have been 245 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

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

Recent New Members: Diggy, mopl91, henrique, ScottWigle, mgshirinda, andersondj

Administrators: Jean-Luc (1043 Posts)

Moderators: Jean-Luc (1043 Posts)