Being very blunt here, sorry if this comes across harsh, but you do not seem to be getting my point.

why should I spend my free time learning syslog-ng to help you instead of you spending your paid time leaning rsyslog so that you can help yourself?

I spend my free time answering questions here to help the community, not to be unpaid labor for companies. I recognize that this sometimes happens, and if it's and interesting problem, I'm happy to help.

so the post "here is my syslog-ng config, someone convert it to a rsyslog config for me" isn't the right thing to ask.

a post, "I'm trying to convert this syslog-ng config into rsyslog, here's what I have so far, but it's not doing what I expect" or "I don't understand how to do X in rsyslog that I used to do in syslog-ng" are very valid posts that generally will get fairly rapid responses.

Please look through the rsyslog documentation ( http://www.rsyslog.com/doc for the latest dev version, or what came with your rsyslog package in your distribution for the older version your distro ships), try to create the new configuration that does what you want it to do, and ask questions for clarifications or when things don't work the way that it seems like they should (or if you just can't figure out how to do something)


or, to put it another way, "don't ask us to do your homework for you" :-)

David Lang

On Mon, 21 Oct 2013, Shantibhushan Sale wrote:

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.

Attachment: 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.
_______________________________________________
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.

Reply via email to