[syslog-ng] patterndb: collect login/logout samples

Balint Kovacs balint.kovacs at balabit.com
Thu Jul 15 15:51:00 CEST 2010


On 07/15/2010 03:01 PM, Balazs Scheidler wrote:
> On Thu, 2010-07-15 at 14:46 +0200, Balazs Scheidler wrote:
>    
>> On Thu, 2010-07-15 at 14:16 +0200, ILLES, Marton wrote:
>>      
>>> Hi,
>>>
>>> I took the liberty and created my own patterndb git tree, so i can track
>>> my patches there and Bazsi can easily pull from there. You can check it
>>> at git.balabit.hu:
>>> http://git.balabit.hu/?p=marci/syslog-ng-patterndb.git;a=summary
>>>
>>> I have added a small python script test-patterns.py which can be used to
>>> automatically check the example messages against the patterns, while it
>>> also verifies the parsed name/value pairs. It is kind of a handy tool
>>> when you poke with the patterns and want to run automatic tests. It
>>> requires pdbtool and python xml package.
>>>
>>>        
> Could you be more specific which XML package is needed? I've tried
> everything, but none of them worked with the script.
>
>    
The old python-xml package from jaunty would be needed but is not 
available for recent distros. I refactored it to use python-lxml, please 
find the patch attached. I also ran into some UTF-8 related output 
trouble that the other patch fixes. Both tested on Ubuntu Lucid and 
strictly WORKSFORME.

Balint
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-patterns.py.diff
Type: text/x-patch
Size: 2785 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20100715/650de685/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-patterns.py.utf-8.diff
Type: text/x-patch
Size: 704 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20100715/650de685/attachment-0001.bin 


More information about the syslog-ng mailing list