I'm trying to assign a variable with a substring of the message. This is my config:

set $!myvar = "%msg:R,ERE,1,DFLT:^ *([a-zA-Z]+)(--end%";

but when I write it with a template, I'm getting the %msg...--end% string instead of the substring extracted with the regular expression.

        Is this possible? What am I doing wrong?

Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
Tfo: 868889150
Fax: 868888337
rsyslog mailing list
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 

Reply via email to