0

I am thinking of making a log server to track all requests that come to my website in someway different from apache logs and thus be able to create custom reporting system.
What is the best way to send such logging record from my web-server to the log-server and to preserve the performance of my webserver (I don't want to affect my web-server's performance). Also I am aware of some cases like getting the log server down, I don't want this to affect the web-server as well.
I was thinking in making web-service or to open a socket from web-server to log-server, but I think in case of server-down for log-server, this will affect my web-server. any idea is highly appreciated!

user9517
  • 115,471
  • 20
  • 215
  • 297
Alaa Alomari
  • 638
  • 6
  • 19
  • 37

3 Answers3

1

you probably want to look in to a syslog server.

James
  • 819
  • 4
  • 10
0

i think beanstalk is the best way to handle such cases... simply you can add jobs to beanstalk with whatever data you want, and then the log server can read from beanstalkd tube

Alaa Alomari
  • 638
  • 6
  • 19
  • 37
0

making a log server to track all requests...in someway different from apache logs

Without knowing what you actually want to start recording/analysing it's impossible to say what the best method of achieving this is. Maybe part of the solution is to change the log format. Maybe you need to pipe the logs elsewhere in real time to crunch the data. Maybe it'd be better / necessary to run a proxy in front of the webserver, maybe you could do the log analysis offline. Maybe you need an asynchronous message handling system between your application logic and the analyser. Maybe you just need to run a query on your database.

But you've not given us any clues as to what the current architecture is, what your budget is, what information you want to gather, what other constraints might apply....

symcbean
  • 21,009
  • 1
  • 31
  • 52