[rsyslog] How to add new configuration option
Tomas Kubina
xkubina at fi.muni.cz
Wed Jan 13 14:02:31 CET 2010
Rainer Gerhards wrote:
> Hi Tomas,
>
> it's probably the simplest if you post your code so that I can give you the
> relevant hints.
>
> Rainer
>
>
>> -----Original Message-----
>> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
>> bounces at lists.adiscon.com] On Behalf Of Tomas Kubina
>> Sent: Wednesday, January 13, 2010 12:16 PM
>> To: rsyslog-users
>> Subject: [rsyslog] How to add new configuration option
>>
>> Hi,
>>
>> I would appreciate any help with adding support for a new configuration
>> directive. I have done some
>> code and I need now something like:
>> $AddClientCN [on/off].
>> I have read the sources to find out how rsyslog processes conf file.
>> There is some linked list with
>> known commands. I think that it is enough to add new item to this list
>> but I don't know how.
>> Is this my idea right?
>>
>> Thanks for any help.
>>
>> Regards,
>>
>> Tomas
>>
>
Hi Rainer,
the modified files are attached. The alternative code is marked by #if
statement.
I had to try to do this modification because the project, I am
interested in, needs
to verify client's authentication. I realize that the patch is something
like a hack,
because the rsyslog's architecture doesn't provide this feature (adding
client CN to
syslog message) and it is not proper solution, but for our needs it is
enough.
BTW I use this templete:
template ILS_template,"%timegenerated% %fromhost-ip% %HOSTNAME%
%syslogtag%%msg%\n";
I have done a similar code for adding client principal for imgssapi.
Thanks for help.
Regards,
Tomas
More information about the rsyslog
mailing list