Thanks a lot. I have syslog-ng.conf file which is for syslog-ng...please edit if you would like to and add some syntax for rsyslog if you feel.
On Mon, Oct 21, 2013 at 4:07 PM, David Lang <[email protected]> wrote: > On Mon, 21 Oct 2013, Shantibhushan Sale wrote: > > Hi, >> I have similar attached file which is syslog-ng. I am unable to map >> the syntax of syslog-ng.conf. I am trying to insert my own application >> logs >> from this. >> If some can tell how can i map source,destination,filter and log >> statements. >> > > In rsyslog, you normally don't think about the source. > > at the beginning of your configuration, you define all your sources. > > Then below you define filters and actions. The filters can take the source > into account if you need them to, but usually that doesn't need to be done. > > rsyslog v 7.x allows for several new things in terms of filters and syntax > that can simplify your configuration > > > I have kind of similar file: syslog-ng.conf...Can someone help me to port >> belwo syntax to rsyslog.conf. >> Can i use the syslog-ng.conf as rsyslog.conf ? >> It would be good help if some really help on this.. >> >> source s_rackware_remote { >> udp(); >> }; >> > > with v7 this would just be > > @destination > > with 5.x and earlier this would be > > *.* @destination > > > template t_received_time { template("$R_DATE $HOST $MSG\n"); >> template_escape(no); }; >> > > I don't know what template t_received_time means. > > > destination df_messages { file("/var/log/messages"); }; >> >> filter f_at_least_info { level(info..emerg); } >> >> log { >> source(s_all); >> filter(f_syslog); >> destination(df_syslog); >> }; >> > > *.info /var/log/messages > > David Lang > > > >> >> >> On Mon, Oct 21, 2013 at 3:42 PM, David Lang <[email protected]> wrote: >> >> On Mon, 21 Oct 2013, Shantibhushan Sale wrote: >>> >>> Can anyone help me porting my syslog-ng.conf to rsyslog.conf. ? >>> >>>> >>>> >>> The problem is that people here are not going to be that familiar with >>> the >>> syslog-ng config syntax. >>> >>> For me, that syntax is one of the big reasons for not using syslog-ng 10 >>> years ago. I can figure it out, but it would take a lot of time looking >>> through the syslog-ng docs. >>> >>> As was suggested when you asked before, you are probably better off just >>> starting the new configuration from scratch. If you understand what your >>> old config does it shouldn't be hard to create the new config, and if you >>> get stuck, if you can explain in english what you are trying to do, we >>> can >>> help you do it. >>> >>> David Lang >>> ______________________________****_________________ >>> rsyslog mailing list >>> http://lists.adiscon.net/****mailman/listinfo/rsyslog<http://lists.adiscon.net/**mailman/listinfo/rsyslog> >>> <http:**//lists.adiscon.net/mailman/**listinfo/rsyslog<http://lists.adiscon.net/mailman/listinfo/rsyslog> >>> > >>> http://www.rsyslog.com/****professional-services/<http://www.rsyslog.com/**professional-services/> >>> <http://**www.rsyslog.com/professional-**services/<http://www.rsyslog.com/professional-services/> >>> > >>> >>> What's up with rsyslog? Follow https://twitter.com/rgerhards >>> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad >>> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you >>> DON'T LIKE THAT. >>> >>> ______________________________**_________________ >> rsyslog mailing list >> http://lists.adiscon.net/**mailman/listinfo/rsyslog<http://lists.adiscon.net/mailman/listinfo/rsyslog> >> http://www.rsyslog.com/**professional-services/<http://www.rsyslog.com/professional-services/> >> What's up with rsyslog? Follow https://twitter.com/rgerhards >> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad >> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you >> DON'T LIKE THAT. >> >> ______________________________**_________________ > rsyslog mailing list > http://lists.adiscon.net/**mailman/listinfo/rsyslog<http://lists.adiscon.net/mailman/listinfo/rsyslog> > http://www.rsyslog.com/**professional-services/<http://www.rsyslog.com/professional-services/> > What's up with rsyslog? Follow https://twitter.com/rgerhards > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad > of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you > DON'T LIKE THAT. >
syslog-ng.conf
Description: Binary data
_______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

