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 11-08-2012, 06:06 PM   #1
eqtime
LQ Newbie
 
Registered: Apr 2012
Posts: 9

Rep: Reputation: Disabled
Centos 6.3 as remote syslog server


Hi, I want to have my switch log debugging information to my centos server.

in /etc/sysconfig I've changed rsyslog SYSLOGD_OPTIONS and added -r to allow remote logging and added the firewall rule.

I've added *.* @192.168.1.1:514, but when i try to restart rsyslog it gives me the error that the command is not found.

Can someone assist?
 
Old 11-09-2012, 01:10 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by eqtime View Post
when i try to restart rsyslog it gives me the error that the command is not found.
Please post only exact error messages (not accounts or approximations of errors) and your Syslog configuration contents.
 
Old 11-12-2012, 02:44 PM   #3
eqtime
LQ Newbie
 
Registered: Apr 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
Please post only exact error messages (not accounts or approximations of errors) and your Syslog configuration contents.
Here is what I have
Code:
# Options for rsyslogd
# Syslogd options are deprecated since rsyslog v3.
# If you want to use them, switch to compatibility mode 2 by "-c 2"
# See rsyslogd(8) for more details
SYSLOGD_OPTIONS="-r -m 0"

*.* @192.168.1.1:514
when I restart rsyslog

Code:
service rsyslog restart
/etc/sysconfig/rsyslog: line 7: initramfs-2.6.32-279.11.1.el6.i686.img: command not found
Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
Thanks!
 
Old 11-12-2012, 03:25 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by eqtime View Post
Here is what I have
That's your /etc/sysconfig/rsyslog! It should not have the "*.* @" line: that should be in /etc/(r)syslog.conf.
 
Old 11-13-2012, 11:20 PM   #5
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
I'd expect the syslog.conf on the Centos server to specify a file as the log destination. Then you need to tell the switch to send log data to it.
 
  


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
CentOS Syslog Server Help j8177e5 Linux - General 4 06-03-2011 05:15 AM
remote syslog server in linux harshaabba Linux - Server 8 04-05-2011 05:08 PM
Remote Syslog-np server Cheza Linux - Server 2 11-07-2007 07:33 PM
Syslog to a Remote Server Antonius_Block Linux - Software 1 05-06-2006 03:29 AM

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

All times are GMT -5. The time now is 11:12 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