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

Will my Extra sections only show data specified by OnlyFiles?

Reply to Post Add a New Topic
UserPost

2:59 am
March 23, 2010


cssfsu

Member

posts 55

Hi Jean,

I have a number of extra sections defined in my conf file. I also have the OnlyFiles parameter set. My question is: I know that the data for the report will adhere to whatever I have defined in OnlyFiles but will the Extra Sections also adhere to that? And If not, how should I ensure that my Extra sections only show the stats for the data specified by OnlyFiles parameter ?

For eg:-   A couple of lines in my log file are as below, one with app=cdo and one iwth app=aip

127.0.0.1 [19/Mar/2010:19:13:51 -0400]
"PUT /resources/createGraph/6?app=aip H
TTP/1.1" 200 234 "Mozilla/5.0 (Windows;
 U; Windows NT 5.1; en-US; rv:1.9.0.18)
 Gecko/2010020220 Firefox/3.0.18"
 
127.0.0.1 [19/Mar/2010:19:13:52 -0400]
"GET /resources/createGraph/graph?app=c
do HTTP/1.1" 200 47314 "Mozilla/5.0 (Wi
ndows; U; Windows NT 5.1; en-US; rv:1.9
.0.18) Gecko/2010020220 Firefox/3.0.18"

n my conf file I have OnlyFiles="REGEX[app=aip]

and an extra section as below

ExtraSectionName1="Chart Calls"
ExtraSectionCodeFilter1="200 304"
ExtraSectionCondition1="URL,/resources/
createGraph"
ExtraSectionFirstColumnTitle1="CMR"
ExtraSectionFirstColumnValues1="QUERY_S
TRING,cmr=([^&]+)"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=PL
ExtraSectionAddAverageRow1=0
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=20
MinHitExtra1=1
 
ExtraTrackedRowsLimit=5000

Will the log line with app=cdo be counted in the extra section? If so how can i exclude it?

Thanks

8:56 am
March 23, 2010


Jean-Luc

Admin

posts 1125

Hi,

When AWStats starts parsing a log file it immediately drops records that do not match the OnlyFiles  directive. So you should not have any surprise with your extra section.

5:31 pm
March 23, 2010


cssfsu

Member

posts 55

Thanks for responding Jean.

One more question. For my above example, do you think my OnlyFiles is setup correctly.

I have OnlyFiles="REGEX[app=aip] for the below logs.

Every URL in the log line would either have app=aip or app=cdo.

127.0.0.1 [19/Mar/2010:19:13:51 -0400]
"PUT /resources/createGraph/6?app=aip H
TTP/1.1" 200 234 "Mozilla/5.0 (Windows;
 U; Windows NT 5.1; en-US; rv:1.9.0.18)
 Gecko/2010020220 Firefox/3.0.18"
 
127.0.0.1 [19/Mar/2010:19:13:52 -0400]
"GET /resources/createGraph/graph?app=c
do HTTP/1.1" 200 47314 "Mozilla/5.0 (Wi
ndows; U; Windows NT 5.1; en-US; rv:1.9
.0.18) Gecko/2010020220 Firefox/3.0.18"

11:04 pm
March 23, 2010


Jean-Luc

Admin

posts 1125

OnlyFiles="REGEX[app=aip]"

looks good to me. AWStats will accept the first line and drop the second one.

12:09 am
July 1, 2010


cssfsu

Member

posts 55

Hi Jean,

OnlyFiles="REGEX[app=aip]" does not work in the below condition. 

Here I need to keep all URLs like the first one. ie having  "resources/stats/?app=aip" but I do not need only "?app=aip" in the second line. 

GET http://localhost:8101/resources/stats/?app=aip

and

GET http://localhost:8101/?app=aip

Will the below be suffice? 

OnlyFiles="REGEX[/resources/stats/app=aip]"

7:12 am
July 1, 2010


Jean-Luc

Admin

posts 1125

Hi,

The question mark is missing. As the slash and the question mark are special characters, they must be escaped:

OnlyFiles="REGEX[\\\/resources\\\/stats\\\/\\\?app=aip]"

Reply to Post

Reply to Topic:
Will my Extra sections only show data specified by OnlyFiles?

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


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
13 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)