Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Log Files
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Log Files

 Post Reply Post Reply Page  12>
Author
slog View Drop Down
Groupie
Groupie


Joined: 11 September 2009
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote slog Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
slog View Drop Down
Groupie
Groupie


Joined: 11 September 2009
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote slog Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
slog View Drop Down
Groupie
Groupie


Joined: 11 September 2009
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote slog Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
slog View Drop Down
Groupie
Groupie


Joined: 11 September 2009
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote slog Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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 Folders

Once 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.
Back to Top
slog View Drop Down
Groupie
Groupie


Joined: 11 September 2009
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote slog Quote  Post ReplyReply Direct Link To This Post Posted: 24 September 2009 at 3:09pm
Thanks Bruce, the ../ is exactly what I needed to know. Thanks
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.