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

how to count number of logins for each user ?

Reply to Post Add a New Topic
UserPost

1:26 pm
January 7, 2009


fatboyslim

Guest

Hello !

I have a question, how to count the number of logins to an application for each user using awstats extra section ?

I am using a custom  log format that includes %extra1 parameter which is a user login.

3:40 pm
January 7, 2009


Jean-Luc

Admin

posts 1125

Hi,

Do you want to count the number of users who login through a given page or do you want to count how many times a given user is logging in ?

Also, what does this %extra1  contain ? Is it the same as the standard AWStats field called %logname ?

2:03 am
January 8, 2009


fatboyslim

Guest

Hello,

I would like to count how many times a given user is logging in.

%extra1 is the same as %logname.

LogFormat= "%host %other %logname %time2 %methodurl %refererquot %code %bytesd %extra1"

5:08 am
January 8, 2009


Jean-Luc

Admin

posts 1125

It can be done, if there exists a URL that is only hit once when you log in. I would try something like this:

ExtraSectionName1="Logins"
ExtraSectionCodeFilter1="200 304"
ExtraSectionCondition1="URL,\\/url_visit
ed when_logging_in"
ExtraSectionFirstColumnTitle1="Login name"
ExtraSectionFirstColumnValues1="extra1,
^(.+)"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=PL
ExtraSectionAddAverageRow1=0
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=20
MinHitExtra1=1

/url_visited when_logging_in must be the URL that gets one hit each time someone logs in.

5:52 am
January 8, 2009


fatboyslim

Guest

It works fine, thank you very much.

I am also interested if it is possible to count total time when user is logged into application ?

10:24 am
January 9, 2009


Jean-Luc

Admin

posts 1125

You cannot measure the length of a session with an extra section.

3:50 am
January 10, 2009


fatboyslim

Guest

What about awstats plugins ? Is it possible to use any of them to measure the length of user session ?

2:58 am
January 11, 2009


Jean-Luc

Admin

posts 1125

Not that I know of.

3:31 pm
January 20, 2009


jockee

Guest

Hi Jean-Luc!

What would a section counting the number of users who login through a given page look like? It would be very useful to us.

Thanks in advance,

Jockee

3:14 am
January 21, 2009


Jean-Luc

Admin

posts 1125

Hi Jockee,

You can use the extra section above and count the number of lines in the report. I am afraid there is no nicer way to do it, as an extra section can only count pages, hits or data bytes (bandwidth).

Reply to Post

Reply to Topic:
how to count number of logins for each user ?

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


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
58 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

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

Membership:

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