output duplication plugin

This is the place for developers to discuss bugs, new features and everything else about code changes.

output duplication plugin

Postby loggie on Fri Jul 04, 2008 8:35 pm

Hello Rainer and others.

I have a bit (I hope that only "a bit":) strange use case for rsyslog: I need it to save all data into MySQL db AND at the same time duplicate it and send over network (or via local unix socket) in simple (easy to parse) format.

As far as I understood I need to create custom output plugin for rsyslog. The problem is that I was unable to find any documentation how to write plugins for rsyslog. Could you please point me to some place where I can read about it (besides source code itself :-)

Of course it would be great if I can achieve this via editing rsyslog config only - please tell me if you have an idea about how to do it.
loggie
New
 
Posts: 7
Joined: Fri Jul 04, 2008 8:27 pm

Professional Services Information

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

Re: output duplication plugin

Postby rgerhards on Fri Jul 04, 2008 9:39 pm

Well, this is actually a quite common use case. And it is very simple to achive: just use two rules, e.g.

*.* :ommysql:...
*.* @@machine

That's it ;)
User avatar
rgerhards
Site Admin
 
Posts: 1667
Joined: Thu Feb 13, 2003 11:57 am

Re: output duplication plugin

Postby loggie on Fri Jul 04, 2008 11:41 pm

Thanks for advise.
Looks like my next questions will appear in "configuration" of forum :-)
loggie
New
 
Posts: 7
Joined: Fri Jul 04, 2008 8:27 pm

Google Ads



Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 0 guests

cron