Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: custom configuration of AWSTATS |
|
Author |
|
jnsunkersett
Joined: 30 Jan 2011 Posts: 23
|
Posted: Thu 29 Sep '11 12:24 Post subject: custom configuration of AWSTATS |
|
|
Hi,
I am using AWSTATS to analyse the httpd access.log creted by Apache.
I want AWSTATS to match and count only 4 specific urls, but could not achieve it using the
OnlyFiles
and
URLWithQueryWithOnlyFollowingParameters
config parameters;
In the access.log, i am only interested in hits where the URL is
/freePrasadAvailability.do?parameter=input
/donation.do?parameter=reset
/bookDarshan.do?parameter=bookDarshan
/roomBooking.do?parameter=input
So I tried;
URLWithQueryWithOnlyFollowingParameters="parameter=input"
but awstats counted other URLs too. (I had expected onlt 2)
I also tried
OnlyFiles="REGEX[donation.do\?parameter=reset | \/bookDarshan.do\?parameter=bookDarshan | \/roomBooking.do\?parameter=input | \/freePrasadAvailability.do\?parameter=input]"
but that too failed.
Any clues will be apreciated.
thank you
jeevan |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7372 Location: Germany, Next to Hamburg
|
|
Back to top |
|
jnsunkersett
Joined: 30 Jan 2011 Posts: 23
|
Posted: Mon 03 Oct '11 10:49 Post subject: |
|
|
Found a solution.
Specified everything as separate REGEX[]
Quote: |
OnlyFiles="REGEX[\/donation\.do\?parameter=reset] REGEX[\/bookDarshan\.do\?parameter=bookDarshan] REGEX[\/roomBooking\.do\?parameter=input] REGEX[\/freePrasadAvailability\.do\?parameter=input]"
|
|
|
Back to top |
|
|
|
|
|
|