[…]

> Am 11.09.2020 um 22:00 schrieb Rainer Gerhards <[email protected]>:
> 
> https://www.rsyslog.com/doc/v8-stable/concepts/multi_ruleset.html 
> <https://www.rsyslog.com/doc/v8-stable/concepts/multi_ruleset.html>
> 
> Use the modern syntax in the samples.


Thanks! That did the trick!

I solved it as follows:

template (name="DynFile" type="string" 
string="/var/log/remote/system-%HOSTNAME%.log")
ruleset(name="remotelogs"){
action(type="omfile"  dynaFile="DynFile")
}
...

input(type="imudp" port="514" ruleset="remotelogs")
input(type="imtcp" port="514" ruleset="remotelogs")


Jens
_______________________________________________
rsyslog mailing list
https://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