Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have 5 webservers which I wish to log each of them remotely to one box. From my readings, http://www.oreillynet.com/pub/a/sysa...pd-syslog.html and others, and I guess something is just not clicking. 1st is I only wish to monitor the apache access (and error) logs. So I have one of the webservers /etc/syslog.conf entry added;
local3.* @remote server ip
on the server I restarted syslog with the -r remote option, ps aux shows;
So, what's next or what's wrong? I hit the website a bit, but the readings so far haven't shown how to test a bit more, or ensure things are right, etc.
Thanks for any help or tips on people already doing this.
I have 5 webservers which I wish to log each of them remotely to one box. From my readings, http://www.oreillynet.com/pub/a/sysa...pd-syslog.html and others, and I guess something is just not clicking. 1st is I only wish to monitor the apache access (and error) logs. So I have one of the webservers /etc/syslog.conf entry added;
local3.* @remote server ip
on the server I restarted syslog with the -r remote option, ps aux shows;
root 2738 0.0 0.0 2092 724 ? Ss Jan19 0:16 syslogd -m 0 -r
So, what's next or what's wrong? I hit the website a bit, but the readings so far haven't shown how to test a bit more, or ensure things are right, etc.
Thanks for any help or tips on people already doing this.
Lr
Is Apache logging via syslog? By default I do not believe that it uses syslog but writes logs directly. If you send local3.* to a local file do entries appear? If so check that your remote syslog (netstat --listen --inet) is listening on the network interface AND that your firewall is down for the syslog port (UDP/514 or UDP/601).
Looking at that though, I don't like their method of a perl wrapper, when you have logger available:
CustomLog "| /usr/bin/logger -p local.info" common
would do it with no scripting at all.
Also i'd really recommend checking out syslog-ng over syslogd, much nicer to configure and more powerful especially when you have networked logging requirements.
Last edited by acid_kewpie; 01-20-2009 at 12:54 PM.
Thanks for the reply. I am unclear no how to 'send local3.* to a local file'. I am reading in parallel to try to understand it a bit more but the firewall and listen is fine (see below)
lol, cretin... nah. The amount of posting you do, your allowed a little slack sometimes
So, I checked and edited my vhost so it now looks like this;
CustomLog logs/domain.com-access_log combined
CustomLog "| /usr/bin/logger -p local.info" common
I see no local.info file on either the local or remote server, so I looked in the general error_log and saw this;
piped log program ' /usr/bin/logger -p local.info' failed unexpectedly
logger: unknown facility name: local.
As for syslog-ng, I have used it in the past for direct postgres logging, but if you think this is a better route, I will do some reading and go that route ... tnx
hmmmmm....
Last edited by sir-lancealot; 01-21-2009 at 02:10 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.