string contact is '&', not '+', see
https://www.rsyslog.com/doc/v8-stable/rainerscript/expressions.html

HTH
Rainer

El mié., 8 ene. 2020 a las 12:51, Arp via rsyslog
(<[email protected]>) escribió:
>
> Hello,
>
> lets say I want to get a string from a file and add this to a string:
>
> set $.firststring = "example";
> set $.secondstring = `cat test.txt`
> set $.newstring = $firststring+$secondstring;
>
> and put this as a filename into a template:
> template(name="testTemp" type="string" string="$.newstring")
>
> rsyslog does not complain about it, but does also not create the file that
> should be stored in $.newstring.
> Is that possible, or is there no other way than putting the `cat ...`
> directly into the template?
>
> Thanks.
>
>
>
> --
> 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