| Author |
Topic Search Topic Options
|
slog
Groupie
Joined: 11 September 2009
Status: Offline
Points: 59
|
Post Options
Thanks(0)
Quote Reply
Topic: Log Files Posted: 23 September 2009 at 6:20pm |
Hi, log_files folder is empty, but i found another log foldr with some files on it. Do I have to activate some thing to start logging my users activities in the forum?
And after it starts, how can i read the log file? Is the some kind of interface to read and search thru these files?
Thanks,
slog
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 23 September 2009 at 6:33pm |
|
Log files can be enabled by editing in notepad the file includes/setup_options_inc.asp where yous elect which options you want to be logged.
log files are then read by downloading them and reading them in a text editor.
|
|
|
 |
slog
Groupie
Joined: 11 September 2009
Status: Offline
Points: 59
|
Post Options
Thanks(0)
Quote Reply
Posted: 23 September 2009 at 6:57pm |
Thanks Bruce.
So you don't have any kind of interface to read and do serches on the log file in order for you to know if a user with the ip registered more than one user in you forum?
Anyway, reading at the text editor is good enough for now.
Thanks
|
 |
slog
Groupie
Joined: 11 September 2009
Status: Offline
Points: 59
|
Post Options
Thanks(0)
Quote Reply
Posted: 23 September 2009 at 7:18pm |
I just enabled it in the file, but no file was created at the log_files folder. I had some new posts created and nothing happened with the log.
That is how my configuration is now:
'Logging'Web Wiz Forums is able to create log files of actions, activity, and errors. However this WILL effect performance so be careful what you enable logging for. 'Logging requires that the folder storing log files has read, write, and modify permissions for the IUSR account in order for Web Wiz Forums to create and write to log files. 'SECURITY ALERT: MAKE SURE THAT YOU MOVE THE LOG FILE LOCATION TO A FOLDER NOT ACCESSIBLE TO THE PUBLIC. Const blnLoggingEnabled = True 'Enable logging Dim strLogFileLocation strLogFileLocation = Server.MapPath("log_files") 'Default log file folder, change this to a folder outside your website root if you don't want logs files to be public
Const blnModeratorLogging = True 'Log the actions of moderators Const blnErrorLogging = True 'Log error messages Const blnNewRegistrationLogging = True 'Log new registrations
Const blnCreatePostLogging = True 'Log the creating of new topics and posts (Don't enable this on busy forums) Const blnEditPostLogging = True 'Log the editing of topics and posts (Don't enable this on busy forums) Const blnDeletePostLogging = True 'Log the deletion of topics and posts |
One more thing. How do I use my files outside the root, can I send it to another server? I see that
strLogFileLocation = Server.MapPath("log_files") |
tells where is my folder located, but what do I have to right there to send it to a folder outsite the root or to another server?
Thanks
Edited by slog - 23 September 2009 at 7:21pm
|
 |
123Simples
Senior Member
Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
|
Post Options
Thanks(0)
Quote Reply
Posted: 23 September 2009 at 7:37pm |
|
You need to give read/write permissions to your log files folder Most servers have the ability for you to set up a folder outside your wwwroot folder (this is the folder where files can be accessed via browsers) Consult your server for your instructions on this
|
|
|
 |
slog
Groupie
Joined: 11 September 2009
Status: Offline
Points: 59
|
Post Options
Thanks(0)
Quote Reply
Posted: 23 September 2009 at 10:37pm |
Ok, thanks MrTWS. My forum is hosted at a Web Wiz Hosting account. The log_files is now working, I can see a file there, but still not knowing how to send my log files outside the root, my main concern is about the way to write it.
strLogFileLocation = Server.MapPath("log_files") |
Here "log_files" is written like that, and it is at the same folder as the .asp file, but how do i do if I wanna use a folder outside the root?
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 September 2009 at 10:30am |
If you host the website with us then use the File Manager in your Control Panel to create a log_file folder above the wwwroot for that website and still using the File Manger click the padlock icon to set read and write permissions. The page below gives details on setting read and write permissions from your control panel:- Changing Read and Write Permissions for Files and FoldersOnce this is done if the forum is in the wwroot folder you will use the following for the path in the setup_options_inc.asp file:-
strLogFileLocation = Server.MapPath("../log_files") |
If the forum is located in a sub folder you may need to add in more ../ to get up above the wwwroot folder. If you get stuck then fill in a support ticket and we will have someone set this up for you.
|
|
|
 |
slog
Groupie
Joined: 11 September 2009
Status: Offline
Points: 59
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 September 2009 at 3:09pm |
|
Thanks Bruce, the ../ is exactly what I needed to know. Thanks
|
 |