I'm using regex and templates to transfer syslog messages to MySQL and it seams that there is a limit with the length of the database output "engine":
As soon I reach the limit of 1024 characters with the template I receive errors from the rsyslogd when it start's up. Can you confirm this limitation and is there a work around?
- Code: Select all
$template t_xxxxxxxxxxxxxxx_100, "insert into XXXXXXXXXXXXXXXXX (xxxxxxxxxxxxxx,xxxx,xxxxxxxxxxxxxxx,xxxxxxxxxxx,xxxxxxxxxxxxx,xxxxxxxxxxx,xxxxxxxxxxxxx,xxxxxxxxxxxxxx,xxxxxxxxxxxxxxxx,xxxxxxxxxxxx,xxxxxxxxxxxx,xxxxxxxxxxxxxx,xxxxxxxxxxxxxx,xxxxxxxxxxxx,xxxxxxxxx,xxxxxxxxxxxxxx,xxxxxxxxxxx) values ('xxx','%fromhost%','%syslogtag:R:[0-9]*--end%','%msg:R,ERE,1:xxxxxxxxxxxxx ([0-9]+)--end%','%msg:R,ERE,1:xxxxxxxxxxxxxx ([0-9a-zA-Z]+)--end%','%msg:R,ERE,1:xxxxxxxxxxxxx ([0-9:a-zA-Z .]+)--end%','%msg:R,ERE,1:xxxxxxxxxxxxxx ([0-9a-zA-Z]+)--end%','%msg:R,ERE,1:xxxxxxxxxxxxxxxx ([0-9a-zA-Z]+)--end%','%msg:R,ERE,1:xxxxxxxxxxxxxxxx ([0-9a-zA-Z]+)--end%','%msg:R,ERE,1:xxxxxxxxxxxxxxxxx ([0-9a-zA-Z() ]+)--end%','%msg:R:ERE,1:xxxxxxxxxxxxxxxx ([0-9:a-zA-Z .]+)--end%','%msg:R,ERE,1:xxxxxxxxxxxxxxx ([0-9:a-zA-Z .]+)--end%','%msg:R,ERE,1:xxxxxxxxxxxxxxxx ([0-9]+)--end%','%msg:R,ERE,1:xxxxxxxxxxxxxxx ([0-9]+)--end%','%msg:R,ERE,1:xxxxxxxxx ([0-9]+)--end%','%msg:R,ERE,1:xxxxxxxxxxxxxxx ([0-9]+)--end%','%msg:R,ERE,1:xxxxxxxxxxxxxxxxxxxxxx ([0-9]+)--end%');", SQL
Regards
Thomas


