[syslog-ng] Customizing syslog-ng snmp() destination option

Fabien Wernli wernli at in2p3.fr
Tue Mar 22 07:12:35 UTC 2022


Hi again,

On Tue, Mar 22, 2022 at 06:09:32AM +0000, Maurya, Shivani wrote:
> But this is how I want an extra field to be added in trap itself before the variable-binding -
> 
> [cid:image002.png at 01D83DE1.7C82C330]

As I said, I think you can achieve this using `snmp-obj()`.
Try the following:

    snmp-obj('.1.3.6.1.6.3.18.1.3.0', 'Ipaddress', "${SOURCEIP}")



More information about the syslog-ng mailing list