hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Multiple Webservers creating one logfile
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Multiple Webservers creating one logfile

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-19-2006, 02:29 AM
DaiTengu DaiTengu is offline
Junior Guru Wannabe
 
Join Date: Mar 2003
Location: Wisconsin
Posts: 38

Multiple Webservers creating one logfile


I have a dillema. I've got 2 webservers serving the same content (a redundant load balancing system for a high traffic website. One of the coders has mentioned that he'd like to write some logs to a file (hits to a certain page, and some other information) via a PHP script.

The problem is I don't want two seperate log files. I'm thinking of using a NFS Share for the logfile, but I'm worried about slowdowns & possible data loss.

Has anyone had any experience with anything like this? are there better systems out there? I'm not above paying for a solution to help me manage log files either.

Thanks in advance.

__________________
Mike "DaiTengu" Miller
Big-Board SysAdmin

Reply With Quote


Sponsored Links
  #2  
Old 04-19-2006, 04:19 AM
Cirrostratus Cirrostratus is offline
Web Hosting Master
 
Join Date: Jul 2003
Location: Texas
Posts: 785
If you are using Apache take a look at 'mod_log_sql'.

I have used it in the past and it was very easy to use and will provide you a SQL based logging backend for one or many hosts to share.

http://www.outoforder.cc/projects/apache/mod_log_sql/

Thanks,

Jeremy

Reply With Quote
  #3  
Old 04-19-2006, 10:53 AM
DaiTengu DaiTengu is offline
Junior Guru Wannabe
 
Join Date: Mar 2003
Location: Wisconsin
Posts: 38
Quote:
Originally Posted by LTADMIN
If you are using Apache take a look at 'mod_log_sql'.

I have used it in the past and it was very easy to use and will provide you a SQL based logging backend for one or many hosts to share.

http://www.outoforder.cc/projects/apache/mod_log_sql/

Thanks,

Jeremy
It's actually output from a PHP script, I'm trying to stay away from logging it into MySQL as that's even _More_ server intensive than simply writing it to a file.

__________________
Mike "DaiTengu" Miller
Big-Board SysAdmin

Reply With Quote
Sponsored Links
  #4  
Old 04-28-2006, 03:47 PM
DaiTengu DaiTengu is offline
Junior Guru Wannabe
 
Join Date: Mar 2003
Location: Wisconsin
Posts: 38
pardon me while I *bumpity* a bit, I'm still looking for a good solution to this

__________________
Mike "DaiTengu" Miller
Big-Board SysAdmin

Reply With Quote
  #5  
Old 04-29-2006, 08:42 AM
ImZan ImZan is offline
Web Hosting Master
 
Join Date: Nov 2003
Location: Auckland, New Zealand
Posts: 584
You can use syslog to log remotely. However, you might need to install a seperate log server on the logging server - I am not sure if you can actually install two syslog servers in a system.

The other option would be to use a distributed filesystem to log the information. As for NFS, you might actually run into issues if you've got a popular site in terms of hits as you might generate write failures on the log and crashing the software writing to the system. I do not know if that was our particular system though, as we've never tried to log things at the same time from application servers.

__________________
BLUETRIDENT.NET - Reliable Shared, Reseller and Dedicated Hosting Solutions Provider
Managed Hosting with Personal Service
Highspeed Content Servers, Lighttpd, Ruby on Rails, Cluster Servers & Rich Web Application Hosting


Reply With Quote
  #6  
Old 04-30-2006, 05:43 AM
TheVoice TheVoice is offline
Web Hosting Master
 
Join Date: Oct 2002
Posts: 702
Take a look for a program called spread. Its used to merge log files.

__________________
ServerMatingProject.com
The World's first server mating experiment
We give new meaning to I/O intensive and hot swap

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
GlobalSign, DigiCert, Comodo Partner to Improve NGINX Server Security with OCSP-Stapling Method Web Hosting News 2012-06-20 12:21:06
Cloud Firm ActiveState Adds to PaaS Market with Release of Stackato Platform Software Web Hosting News 2012-03-02 13:32:58
ZNet Launches WHMCSExtras Site for Web Hosting Billing Platform Addons Web Hosting News 2012-02-10 11:48:25
Web Host ASEOHosting Acquires IPv4 Address Space for Multiple IP Hosting Web Hosting News 2011-12-29 16:31:34
VMTurbo Releases Cloud Operations Manager for Virtual and Cloud Environments Web Hosting News 2011-07-20 19:00:04


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?