Rsyslog: function 'ipv42num' not found

Created on 20 May 2019  路  5Comments  路  Source: rsyslog/rsyslog

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.

Actual behavior

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 ]

Steps to reproduce the behavior

set $.src_ip = "192.168.0.1";
set $.src_ip_int = ipv42num($.src_ip);

Environment

bug

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

feature-id picture feature-id  路  11Comments

minhtuanmt1 picture minhtuanmt1  路  4Comments

yfliuyanyan picture yfliuyanyan  路  3Comments

bbailey1024 picture bbailey1024  路  3Comments

mashayev picture mashayev  路  9Comments