I have some basic problem with MySQL + RegEx. I wanted to extract some data from Cisco log messages and put them to proper columns in the database.
When I use template
- Code: Select all
$template tplCisco,"insert into CiscoSystemEvents (Message) values ('%msg:R:.*--end%')",SQL
I get all the message, obvious. but when I use template:
- Code: Select all
$template tplCisco,"insert into CiscoSystemEvents (Message) values ('%msg:R,ERE,1,DFLT:(.*)--end%')",SQL
I get NO input to the database, not even **NO MATCH** . Is it a bug or i am doing something wrong?
i am using version 3.18.6-4 that is standard in debian lenny


