On Tue, 30 Oct 2012, Flavio Oliveira wrote:
Hi, I know that Rsyslog supports Regex however I think it only supports compare-operations. I would like to parse the received MSG and only send specific fields to another Rsyslog Server. Is it possible? Ex.: request 10000 20000 30000 url agent 50000 In the message (tab separated values) above, I would like to send only the values 10000 20000 and 50000. is there anyway to do it with Rsyslog?
Yes, you can create a template that includes only some fields of the message.
look at http://www.rsyslog.com/doc/rsyslog_conf_templates.html and http://www.rsyslog.com/doc/property_replacer.html
especially the section on fields on the second page (search the page for "F")
David Lang _______________________________________________ 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.

