Not sure if I'm doing something wrong but I thought this was a built-in function not requiring any external utilities? The ipv42num function does not seem to exist in my environment.
rsyslogd: error during parsing file /etc/rsyslog.d/30-sshd.conf, on or before line 165: function 'ipv42num' not found [v8.1904.0 try https://www.rsyslog.com/e/2207 ]
rsyslogd: error during parsing file /etc/rsyslog.d/30-sshd.conf, on or before line 165: Invalid function ipv42num [v8.1904.0 try https://www.rsyslog.com/e/2207 ]
set $.src_ip = "192.168.0.1";
set $.src_ip_int = ipv42num($.src_ip);
This problem is pretty strange. The function is in rsyslog core, and it is checked with every CI run. Maybe a mix of different rsyslog modules on the system?
If you can provide a debug log from startup, we may be able to provide a clue.
Doc says ipv42num(), but it is a mistake, use ip42num() which is implemented and working.
Doc says ipv42num(), but it is a mistake, use ip42num() which is implemented and working.
interesting - I overlooked this everywhere. Actually the doc is right, but the code has a typo. I'll correct it so that both names can be used.
Thanks @mabobr and Rainer!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.