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

awstats and time-taken in seconds

Reply to Post Add a New Topic
UserPost

1:46 am
March 17, 2015


spelle65

New Member

posts 2

Can someone give me any advice how to use extra section and show stats in second and not in milliseconds?

Acces log format:

# date time c-ip cs-username s-ip s-sitename cs-method cs-uri cs-uri-stem cs-uri-query c-version sc-status x-cache-info sc-header-size sc(Content-Length) sc-completed sc-bytes cs-bytes time-taken cs(User-Agent) cs(Cookie) cs(Referer) cs(X-Forwarded-For) cached x-fill-proxy-ip x-origin-ip rs-bytes sc(ETag) cs(If-Range) cs(Range) sc(Content-Range) cs(Pragma) sc(Pragma)

 

This is the logformat in awstats config file:

LogFormat = "%time2 %host %lognamequot %other %virtualname %method %url %otherquot %query %other %code %otherquot %other %otherquot %other %bytesd %other %extra5 %uaquot %other %otherquot %otherquot %other %other %other %otherquot %other %otherquot %otherquot %otherquot %otherquot"

Extra5 is time-taken parameter is in seconds (for exmple: 1.033, 0.005 or 4.123).

This is the extraSection in awstats config file:

# Extra section for time-taken
ExtraSectionName5="Response Time (in seconds)"
ExtraSectionCodeFilter5="200 304"
ExtraSectionCondition5="URL,\/"
ExtraSectionFirstColumnTitle5="Response Time"
ExtraSectionFirstColumnValues5="extra5,([0-9]*)$"
# ExtraSectionFirstColumnValues5="extra5,(.*)"
ExtraSectionFirstColumnFormat5="%s"
ExtraSectionStatTypes5=P
ExtraSectionAddAverageRow5=0
ExtraSectionAddSumRow5=0
MaxNbOfExtra5=200
MinHitExtra5=1

10:04 pm
March 22, 2015


Jean-Luc

Admin

posts 1125

Hi,

I would try this:

ExtraSectionFirstColumnValues5="extra5,([0-9]*)[0-9][0-9][0-9]$"

The last three digits will not be shown.

Reply to Post

Reply to Topic:
awstats and time-taken in seconds

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:
3 + 1
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
9 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2712

Membership:

There are 257 Members
There have been 305 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)