we do not have a function that does the equivalent of a sed on a variable

can you give an example of what you are trying to do?

David Lang

On Fri, 27 Dec 2019, kyparisisg via rsyslog wrote:

Date: Fri, 27 Dec 2019 12:29:25 -0700 (MST)
From: kyparisisg via rsyslog <[email protected]>
To: [email protected]
Cc: kyparisisg <[email protected]>
Subject: Re: [rsyslog] Modifying Property

Hello,

I am actually trying to replace every ( <context> ) parenthesis and its
context from the message with this value "."
The message is indeed a string. I am trying to do that by using some of the
built-in functionalities like *re-extract()* to get the parenthesis with the
context and then replace it with the function *replace()* .
But it is not working as either Rsyslog will complain about the regex on
re-extract() or just does not modify the field after the replace().
Is there a way to modify a property (field $!) in a similar way or am I
doing something wrong?
Could you please help me understand what am I doing wrong?

Thank you very much in advance.



--
Sent from: http://rsyslog-users.1305293.n2.nabble.com/
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
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 
THAT.

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
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 
THAT.

Reply via email to