LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-06-2008, 10:38 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
syslog client to log to syslog-ng and itself


I am pointing one of my syslog client to a syslog-ng server. I want to log all message on the client itself AND on the syslog-ng server as well. Is there any easy way to do this? This is my current config file -

*.info;mail.none;authpriv.none;cron.none /var/log/messages
*.info;mail.none;authpriv.none;cron.none @192.168.25.11

authpriv.* /var/log/secure

mail.* -/var/log/maillog

cron.* /var/log/cron

*.emerg *

uucp,news.crit /var/log/spooler

local7.* /var/log/boot.log
 
Old 02-08-2008, 09:51 AM   #2
OuterVillage.com
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
[QUOTE=noir911;3048619]I am pointing one of my syslog client to a syslog-ng server. I want to log all message on the client itself AND on the syslog-ng server as well. Is there any easy way to do this? This is my current config file -

*.info;mail.none;authpriv.none;cron.none /var/log/messages
*.info;mail.none;authpriv.none;cron.none @192.168.25.11



I'm assuming your remote log server is configured to accept remote logging. Remember to edit your /etc/sysconfig/syslog file on the remote log server and add the following options:

SYSLOGD_OPTIONS="-r -m 0"

The config file you have should work and be sending logs to 192.168.25.11 assuming the above is setup correctly.

A couple of things you should look out for when setting up the syslog.conf file on the client. I've noticed that it is very picky with white space. Don't cut'n'paste into the config file. Make sure you insert the tabs manually before the @192.168.25.11. Also don't forget to restart syslogd on the client.
Let me know if that helps.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Debian log rotation of syslog and daemon.log onmountain Linux - Newbie 2 07-31-2008 02:27 AM
Why syslog doesn't log? zivota Red Hat 3 11-01-2006 10:56 AM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 06:21 PM
/var/log/syslog George666 Slackware 4 03-19-2004 07:34 AM
Syslog Client ganninu Linux - Networking 1 10-06-2003 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration