Can rsyslog do this

This is the place for you, if you got rsyslog up and running but wonder how to make it do what you want.

Moderator: rgerhards

Can rsyslog do this

Postby prakash.akumalla on Fri Sep 26, 2008 6:06 am

Hi,

I have a system in which syslog-ng is installed. But due the features of rsyslog, I wished to have rsyslog server.

Now my doubt is can rsyslog collect logs from syslog-ng.

Will syslog-ng be able to send logs to rsyslog server?

Any help appreciated,
Prakash :)
prakash.akumalla
Frequent Poster
 
Posts: 101
Joined: Thu Jun 26, 2008 2:37 pm

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Re: Can rsyslog do this

Postby rgerhards on Fri Sep 26, 2008 9:16 am

Yes, it will, but I do not know the syslog-ng syntax to do that. In general, just configure syslog-ng to forward the messages to a remote host (the one rsyslog is running on) and you are set.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1780
Joined: Thu Feb 13, 2003 11:57 am

Re: Can rsyslog do this

Postby prakash.akumalla on Fri Sep 26, 2008 9:18 am

Hai ,
thanks for your reply Rainer. I will try this and let you know the syntax.

Regards,
Prakash
prakash.akumalla
Frequent Poster
 
Posts: 101
Joined: Thu Jun 26, 2008 2:37 pm

Re: Can rsyslog do this

Postby rgerhards on Fri Sep 26, 2008 9:20 am

prakash.akumalla wrote:...and let you know the syntax.


I would *really* appreciated this ;) That probably another good thing for the wiki :) http://wiki.rsyslog.com

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1780
Joined: Thu Feb 13, 2003 11:57 am

Re: Can rsyslog do this

Postby prakash.akumalla on Mon Sep 29, 2008 10:52 am

Hi,
Rsyslog can do this. I can receive logs form syslog-ng server.
The changes we have to make in syslog-ng configuration file is that we should add these lines.

destination d_mesg { udp("server's ip address" port (514)); };
destination d_auth { udp("server's ip address" port (514)); };


Here i want only info messages and secure messages. so i just kept for those two type messages.
You can add as many type of messages you can.

Regards,
Prakash.
prakash.akumalla
Frequent Poster
 
Posts: 101
Joined: Thu Jun 26, 2008 2:37 pm

Re: Can rsyslog do this

Postby rgerhards on Mon Sep 29, 2008 10:56 am

Thanks, Prakash, this is useful :) I guess it works with TCP, too...
User avatar
rgerhards
Site Admin
 
Posts: 1780
Joined: Thu Feb 13, 2003 11:57 am

Re: Can rsyslog do this

Postby prakash.akumalla on Mon Sep 29, 2008 10:57 am

Hi,
You are correct Rainer. It will work with tcp too.

Regards,
Prakash.
prakash.akumalla
Frequent Poster
 
Posts: 101
Joined: Thu Jun 26, 2008 2:37 pm

Google Ads



Return to Configuration

Who is online

Users browsing this forum: No registered users and 0 guests

cron