- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Centralize Logging
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2006 05:50 AM
04-15-2006 05:50 AM
On one linux box(client)/etc/syslog.conf
user.* @logserver
#service syslog restart
On Log server /etc/sysconfig/syslog.conf
SYSLOGD_OPTIONS="-r -m 0"
#service syslog restart
#tail -f /var/log/messages
Ok, Logging is centrallize now, e.g on client machine i ran "startx" i can se messages on logserver.
But client machine still logs messages locally, and I want that client machine dont log message locally.
what more I have to do ?
Regards
Maaz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2006 06:22 AM
04-15-2006 06:22 AM
Re: Centralize Logging
and more thing left
1, I want to log /var/log/squid/access to a central log server say "logserver" (and not locally)
what Config should I have to do on the Squid server machine
2, I also want to log apache logs to a central log server say "logserver" (and not locally)
what Config should I have to do on the Apache server machine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2006 07:11 PM
04-15-2006 07:11 PM
Solutionyou should redirect apache logs to syslog, for example:
ErrorLog syslog:user
I don't sure that you can use the same way
CustomLog syslog:user combined
for access_log or you should use piping:
"CustomLog â | /usr/bin/logger â p user.infoâ
Of course, you can use localX facility instead of user.
(see for more http://httpd.apache.org/docs/2.0/mod/core.html)
Squid: you should start squid with "-s" flag for loggingg to syslog.
Rgds,
Vitaly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2006 08:12 PM
04-15-2006 08:12 PM
Re: Centralize Logging
from my 1st post
Ok, Logging is centrallize now, e.g on client machine i ran "startx" i can se messages on logserver.
But client machine still logs messages locally, and I want that client machine dont log message locally.
what more I have to do ?
Plz help
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2006 08:28 PM
04-15-2006 08:28 PM
Re: Centralize Logging
Two things to consider as I'm doing this right now.
I set up the logs directory on the central server as an NFS share.
Then I set up /etc/fstab to mount that NFS share at startup.
Then all logs go to that location.
Doing it in syslog requires that port 514 be open and that can be a problem with some firewall configurations.
I generally go with Vitaly's format (NFS or syslog) and keep the local copy of the log. The reason is that if there is a communication problem with the central log server, I still need those logs somewhere so I keep an extra copy.
You should take this into account in the logrotate configuration and have logrotate run not on the central server but on the individual servers around the network.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2006 07:44 AM
04-16-2006 07:44 AM
Re: Centralize Logging
!=user.* /var/log/messages
Unfortunately, I don't know is it possible to choose facility for squid log. If no, we cannot separate squid messages from the other daemons messages.