Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th December 2007, 23:43
fast Hackem fast Hackem is offline
Junior Member
 
Join Date: Dec 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Enhanced Logging With rsyslog - Loggin external hosts

Hello,
Inregards to this howto - http://www.howtoforge.com/logging_wi...on_debian_etch

I was wondering how do I set it up to accept syslog messages from other hosts?

I've tried this in /etc/rsyslog.conf with no luck

*.* @192.168.0.200:514
Reply With Quote
Sponsored Links
  #2  
Old 14th December 2007, 13:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
Default

I think you must modify /etc/rsyslog.conf, e.g. like this:

Code:
*.*       >192.168.0.200,rsyslog,rsyslog_user,rsyslog_user_password
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 15th December 2007, 14:45
fast Hackem fast Hackem is offline
Junior Member
 
Join Date: Dec 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Tried those settings, however I get this message

db error (2003): Can't connect to MySQL server on '192.168.0.200' (4)

Does this mean that I need to create table for this host ?
Reply With Quote
  #4  
Old 16th December 2007, 04:54
fast Hackem fast Hackem is offline
Junior Member
 
Join Date: Dec 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Update: (I thought that I had found the problem)
I tried to enable logging from remote hosts first, by adding in the -r option
in /etc/init.d/rsyslog
RSYSLOGD_OPTIONS="-m 0 -r"

then Restarted rsyslog

Still no messages from other hosts.

So I removed the following
*.* >192.168.0.200,rsyslog,rsyslog_user,rsyslog_user_p assword

still no luck.

Last edited by fast Hackem; 16th December 2007 at 05:17.
Reply With Quote
  #5  
Old 16th December 2007, 08:08
fast Hackem fast Hackem is offline
Junior Member
 
Join Date: Dec 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

May have solved this one !?

I skipped this step
vi /etc/default/rsyslog

Also had to enter in the -r option here.
Reply With Quote
  #6  
Old 16th December 2007, 13:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
 
Default

Quote:
Originally Posted by fast Hackem
Tried those settings, however I get this message

db error (2003): Can't connect to MySQL server on '192.168.0.200' (4)

Does this mean that I need to create table for this host ?
Make sure that the client system is allowed to log in to the MySQL server on 192.168.0.200. Also, the MySQL server must use TCP and listen on all interfaces and on port 3306. What's the output of
Code:
netstat -tap|grep mysql
on 192.168.0.200?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enhanced Logging With rsyslog - rsyslog script error fast Hackem HOWTO-Related Questions 4 13th December 2007 23:33
Enhanced Logging With rsyslog On Debian Etch And phpLogcon For Viewing - DSN Problem Kai HOWTO-Related Questions 2 4th December 2007 09:50


All times are GMT +2. The time now is 06:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.