liblogging api and rfc 3195

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

liblogging api and rfc 3195

Postby loggie on Sat Jul 05, 2008 12:27 am

Hello.

Currently I'm trying to make simple python wrapper around liblogging to enable easy and reliable (rfc 3195) sending of logs to rsyslog.
The documentation of liblogging looks quite outdated (year 2005) and lacking of actual examples. Googling didn't help either. Could you please point me to some examples of using liblogging to send rfc 3195 (both raw and cooked) and how to prepare data for sending (is there any helper functions in liblogging to properly format data or something like this?).

It would be also great to know about project future: are you going to continue development or to abandone liblogging in favor of something else?
Is there any plans to switch to GPLv3 - it would ge great to my mind.

kind regard.
loggie
New
 
Posts: 7
Joined: Fri Jul 04, 2008 8:27 pm

Re: liblogging api and rfc 3195

Postby rgerhards on Mon Jul 07, 2008 7:40 am

Hi,

there is a sample client and server application available as part of the libloging source. I suggest you have a look at these (they are recalled something along the lines of testdrvr.c - let me know if you don't find them).

All in all, liblogging is currently in hibernation and I am not sure if it will awake again. The reason simply is that RFC 3195 seems to be a market failure. I've put a lot of effort into the library, and it unfortunately looks like this was wasted. So a while ago I made the decision to waste no more time. It will evolve if RFC 3195 gets into much more widespread use.

However, I have begun to engineer and implement a similar capable but less complex protocol. It is named RELP. If you are interested, you can find some details here:

http://blog.gerhards.net/2008/03/relp-r ... tocol.html

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1491
Joined: Thu Feb 13, 2003 11:57 am

Re: liblogging api and rfc 3195

Postby loggie on Mon Jul 07, 2008 10:43 am

Thanks for advise - I'll take a look for sample client code.

As for REPL - I already read about it: it's quite interesting but 3 magical letters RFC sounds a lot more promising - dispite current lack of interest on market :-)
Still I would be glad to use library that support both... just in case.

I doubt that liblogging will be alive again without your personal efforts... at least not with current license: just like you and many other people I
do not see a point of giving away my source code to proprietary competitors. :-)

Btw, thanks for great job!
loggie
New
 
Posts: 7
Joined: Fri Jul 04, 2008 8:27 pm

Re: liblogging api and rfc 3195

Postby snott on Wed Oct 08, 2008 1:56 am

Ah the old chicken and egg problem... too bad, because BEEP is a really well designed protocol.

Is there any way to get testdrvr working with rsyslog?
I have in my rsyslog.conf

$ModLoad im3195

But sockstat doesn't report it listening on anything.
If I add "-t601" on the command line, I get some garbage on the console but testdrvr hangs in srAPIOpenlog()

Completely broken?

Skye
snott
New
 
Posts: 5
Joined: Wed Oct 08, 2008 1:45 am

Re: liblogging api and rfc 3195

Postby rgerhards on Wed Oct 08, 2008 6:53 am

Quite honestly, 3195 is receiving so few attention, I do only paid work on it. Too much work was uselessly done... If that changes (dramatically) or a sponsor shows up, I will investigate further.
User avatar
rgerhards
Site Admin
 
Posts: 1491
Joined: Thu Feb 13, 2003 11:57 am

Re: liblogging api and rfc 3195

Postby rgerhards on Wed Oct 08, 2008 6:55 am

Oh, and I forgot the mention: you need to start up a listener. Sample in doc: http://www.rsyslog.com/doc-im3195.html
User avatar
rgerhards
Site Admin
 
Posts: 1491
Joined: Thu Feb 13, 2003 11:57 am

Re: liblogging api and rfc 3195

Postby snott on Wed Oct 08, 2008 4:36 pm

I've read http://www.rsyslog.com/doc-im3195.html
But as I said above:

$ModLoad im3195

But sockstat doesn't report rsyslogd listening on anything.
If I add "-t601" on the command line, I get some garbage on the console but testdrvr hangs in srAPIOpenlog()
snott
New
 
Posts: 5
Joined: Wed Oct 08, 2008 1:45 am

Re: liblogging api and rfc 3195

Postby rgerhards on Wed Oct 08, 2008 4:38 pm

I suggest you use "$Input3195ListenPort 1601" as given in the sample ;)
User avatar
rgerhards
Site Admin
 
Posts: 1491
Joined: Thu Feb 13, 2003 11:57 am

Re: liblogging api and rfc 3195

Postby snott on Wed Oct 08, 2008 4:51 pm

I have, and it makes no difference. rsyslogd does not listen on that address.

# sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root rsyslogd 3727 0 dgram /var/run/log

Also, the documentation says the default for Input3195ListenPort is 601, which implies the directive is optional.

Thanks
snott
New
 
Posts: 5
Joined: Wed Oct 08, 2008 1:45 am

Re: liblogging api and rfc 3195

Postby rgerhards on Wed Oct 08, 2008 4:53 pm

snott wrote:Also, the documentation says the default for Input3195ListenPort is 601, which implies the directive is optional.


It's not optional.

Could you get me a debug log? You can mail it to me privately at rgerhards@gmail.com. Info here:

http://www.rsyslog.com/doc-troubleshoot.html

May I also ask who will be sending the messages (out of curiosity)?
User avatar
rgerhards
Site Admin
 
Posts: 1491
Joined: Thu Feb 13, 2003 11:57 am

Google Ads



Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 0 guests

cron