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

Showing authenticated user name and email in Awstats Report

Reply to Post Add a New Topic
UserPost

3:12 pm
March 15, 2010


deepak

Guest

Hi,

Can you please tell me how could i generate authenticated user

email in Awstats report.

I used plugin userinfo but it is not giving me any proper result.

Can you plase guide me the proper Step.

Thanks & Regards,

Deepak Ray

6:28 pm
March 15, 2010


Jean-Luc

Admin

posts 1125

Hi,

You need to create a file called userinfo.CONFIG_NAME.txt  where CONFIG_NAME is the same configuration name as in the AWStats config file (awstats.CONFIG_NAME.conf ).

userinfo.CONFIG_NAME.txt  must be placed in the DirData  directory, i.e. the directory containing the AWStats data files.

Assuming that deepak  is your login name and that Jean-Luc  is mine and assuming that you want our email addresses to appear in the report, the lines in userinfo.CONFIG_NAME.txt  are like this :

deepak deepak@your_server.com
Jean-Luc jl@mysite.com

The separator in each line must be a tab character.

If this does not solve the problem, please paste here the error messages you are getting.

6:56 pm
March 16, 2010


deepak

Guest

Hi,

Thnks for your approach.

But the data which i will show in report will be static data like the one you have shown me or is there anything by using which i can fetch data dynamically.Like the username and email data dynamically instead of writing to .txt file.

Thanks & Regards,

Deepak Ray

7:51 pm
March 16, 2010


Jean-Luc

Admin

posts 1125

As you know, the user name and email address are read from the userinfo.CONFIG_NAME.txt  file.

If you rather want to dynamically extract the email address from a database, you will have to rewrite the userinfo.pm  plugin.

9:55 pm
March 17, 2010


cssfsu

Member

posts 55

Hi, I ve a similar situation like Deepak's. We need to dynamically grab the user info from another db and show it here.

For eg: every line in our log has a parameter called as cmum which is used to denote a unique id/user. Now that cmum can be used to get more info of that user from our db, like email and name and business division, etc

We need to setup an extra section or use the authenticated users section in the report to show this data and the number of hits it makes to our site.

How do we approach this ?

I am not very good at perl, so rewriting the userinfo.pm  plugin might be a little tough.

My question is: if we can somehow get the userinfo.CONFIG_NAME.txt populated with what we want to show in the report (email and name and business division, etc), will that work? Can the userinfo.pm  plugin (with some modifications) achieve what I want ?

The easiest way to do this would be to actually have those params come in the log itself and then use awstats extra section to process it but at the moment it doesnt seem to be possible to do that.

If there's any other solution you may have, I would love to hear it.

Thanks again!

10:31 pm
March 17, 2010


Jean-Luc

Admin

posts 1125

You wrote:

if we can somehow get the userinfo.CONFIG_NAME.txt populated with what we want to show in the report (email and name and business division, etc), will that work?

userinfo.CONFIG_NAME.txt  is a file that you have to populate by yourself anyway. So you put in there what you want either manually or automatically through a computer program that extracts information from a database.

You wrote:

Can the userinfo.pm plugin (with some modifications) achieve what I want ?

If you dynamically update userinfo.CONFIG_NAME.txt  with the desired data, you do not need to make any change in userinfo.pm .

11:07 pm
March 17, 2010


cssfsu

Member

posts 55

# UserInfo AWStats plugin
# This plugin allow you to add information on authenticated users chart from
# a text file. Like full user name and lastname.
# You must create a file called userinfo.configvalue.txt wich contains 2
# columns separated by a tab char, and store it in DirData directory.
# First column is authenticated user login and second column is text you want
# to add.
#—————————————————————————–

It says in the userinfo.pm — "First column is authenticated user login and second column is text you want # to add. "… What is authenticated user login ? How will awstats determine wht that is based on my logs ?
Also inspite of the above information, based on what ur telling me above..

If i dynamically/manually add more than 2 columns ((email and name and business division, etc) to userinfo.CONFIG_NAME.txt I still do not need to make anychanges in userinfo.pm ??

ie if i have userinfo.CONFIG_NAME.txt with the values below it would work ?

12345 Sam Anderson sand@exu.com Engineer
23456 Paul T
pk@fd.ed Manager
etc
etc

Please help in clarifying

8:48 am
March 18, 2010


Jean-Luc

Admin

posts 1125

The "authenticated user login" in the first column is the value of the %logname  field. The second column in the report will contain all what follows the first column till the next tab character in userinfo.CONFIG_NAME.txt .

Assuming you separate the additional fields with spaces in userinfo.CONFIG_NAME.txt , you will only need to change userinfo.pm  if you want a different presentation of the report.

Reply to Post

Reply to Topic:
Showing authenticated user name and email in Awstats Report

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


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: 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)