Rainer, I'm sure you have been busy with other stuff (stats subsystem, etc) but have you had a chance to look into this?
Thanks. -Joe On Sep 9, 2010, at 1:59 PM, Joe Williams wrote: > Fair enough. :P > > To be honest that was the first C I have written in years. If you want to off > load some of the work I am happy to take it on with some guidance. > > -Joe > > > On Sep 9, 2010, at 12:55 PM, Rainer Gerhards wrote: > >> Quite honestly, this looks like quite some work for me vs. no work for you. I >> thought the major part of the work was on the party that gained the benefits >> ;) >> >> Rainer >> >>> -----Original Message----- >>> From: [email protected] [mailto:rsyslog- >>> [email protected]] On Behalf Of Joe Williams >>> Sent: Thursday, September 09, 2010 8:27 PM >>> To: rsyslog-users >>> Subject: Re: [rsyslog] REST output plugin >>> >>> Rainier, >>> >>> Here is some basic code using libcurl for doing what I want: >>> >>> http://gist.github.com/572182 >>> >>> The data variable is json key/value pairs where I would like to put the >>> syslog fields as in my aforementioned example. >>> >>> Let me know if you have any questions. >>> >>> Thanks for the help. >>> >>> -Joe >>> >>> >>> >>> On Sep 9, 2010, at 1:24 AM, Rainer Gerhards wrote: >>> >>>> If you know how to do the REST part, integrating this into a plugin >>> is rather >>>> simple. If you provide me working code for that part, I can setup a >>> skeleton >>>> and you just need to tweak the result. >>>> >>>> Rainer >>>> >>>>> -----Original Message----- >>>>> From: [email protected] [mailto:rsyslog- >>>>> [email protected]] On Behalf Of Joe Williams >>>>> Sent: Thursday, September 09, 2010 2:43 AM >>>>> To: rsyslog-users >>>>> Subject: [rsyslog] REST output plugin >>>>> >>>>> >>>>> Anyone have an idea of how difficult it would be to create an output >>>>> plugin that uses REST to PUT log lines as JSON to a specific URL? >>>>> Probably something equivalent to the following curl command. >>>>> >>>>> curl -X PUT http://host/ -d '{"app-name": "foo", "msg": "bar", >>> "proc- >>>>> id":"baz", "timestamp":"timestamp:::date-rfc3339", >>>>> "hostname":"hostname", "severity":"syslogseverity-text"}' >>>>> >>>>> Thanks. >>>>> >>>>> -Joe >>>>> >>>>> >>>>> Name: Joseph A. Williams >>>>> Email: [email protected] >>>>> Blog: http://www.joeandmotorboat.com/ >>>>> Twitter: http://twitter.com/williamsjoe >>>>> >>>>> _______________________________________________ >>>>> rsyslog mailing list >>>>> http://lists.adiscon.net/mailman/listinfo/rsyslog >>>>> http://www.rsyslog.com >>>> _______________________________________________ >>>> rsyslog mailing list >>>> http://lists.adiscon.net/mailman/listinfo/rsyslog >>>> http://www.rsyslog.com >>> >>> Name: Joseph A. Williams >>> Email: [email protected] >>> Blog: http://www.joeandmotorboat.com/ >>> Twitter: http://twitter.com/williamsjoe >>> >>> _______________________________________________ >>> rsyslog mailing list >>> http://lists.adiscon.net/mailman/listinfo/rsyslog >>> http://www.rsyslog.com >> _______________________________________________ >> rsyslog mailing list >> http://lists.adiscon.net/mailman/listinfo/rsyslog >> http://www.rsyslog.com > > Name: Joseph A. Williams > Email: [email protected] > Blog: http://www.joeandmotorboat.com/ > Twitter: http://twitter.com/williamsjoe > > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com Name: Joseph A. Williams Email: [email protected] Blog: http://www.joeandmotorboat.com/ Twitter: http://twitter.com/williamsjoe _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

