Fields in curly braces not working
I used a configuration right out of the documentation. This error is logged at startup. I have to remove all fields referenced in curly braces ${}
2023-03-31 13:45:13 ERROR Couldn't parse Exec block at C:\Program Files\nxlog\conf\nxlog.conf:60; couldn't parse statement at line 62, character 13 in C:\Program Files\nxlog\conf\nxlog.conf; invalid character: '$' (0x24)
Config:
# Convert integer type fields
if (${Framed-MTU})
${Framed-MTU} = integer(${Framed-MTU});
Hi John,
There might be a problem with your logic&syntax there. Just wanted to double check what's the intended condition inside the if statement, and why is there a new line between the two parts without using braces?
Please try something like:
if (type(${Framed-MTU}) NOT IN ('integer'))
{
${Framed-MTU} = integer(${Framed-MTU});
}
Cheers,
Konstantinos