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 :
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.
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.
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 .
# 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
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.