> Can the imptcp and imudp inputs share the same inputname?
I am not sure if it is checked, but the idea was that they are unique.
So I wouldn't try it that way...
> Thinking of using the different IPs with same port numbers for
> listener pairs imptcp+imudp. Need to process messages based on it. One
> input pair (tcp+udp) will use lookup table, the other one the static
> variable assignment.
>
> Would like to use this config snippet:
How about "startswith"?
e.g. with names bo-tcp and bo-udp
if ($inputname startswith 'bo') then {
Rainer
> if ($inputname == 'bo') then {
> set $.location = lookup("location", $fromhost-ip);
> } else {
> set $.location = $inputname;
> }
>
> Peter
> _______________________________________________
> 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.
_______________________________________________
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.