[syslog-ng] Syslog-ng v3.31 destination option not working

Peter Kokai (pkokai) Peter.Kokai at oneidentity.com
Fri Feb 18 10:19:11 UTC 2022


Could you please share the error message that points to snmp?

Can you run this commend "syslog-ng --module-registry|grep snmp" to check if you have snmp module installed ?

If there is, it should print something like this:
Module: afsnmp
  The snmp module provides SNMP support for syslog-ng.
  destination     snmp
  parser          snmptrapd-parser

If not please install syslog-ng-mod-snmp (exact name may differ)


From: syslog-ng <syslog-ng-bounces at lists.balabit.hu> on behalf of Maurya, Shivani <shivani.maurya at intel.com>
Sent: 18 February 2022 11:14
To: syslog-ng at lists.balabit.hu
Subject: [syslog-ng] Syslog-ng v3.31 destination option not working

CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.


I am referring the syslog-ng admin guide - https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.30/administration-guide/48#TOPIC-1595034<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.syslog-ng.com%2Ftechnical-documents%2Fdoc%2Fsyslog-ng-open-source-edition%2F3.30%2Fadministration-guide%2F48%23TOPIC-1595034&data=04%7C01%7Cpeter.kokai%40balabit.com%7Cfd6de5ff172c4ca7cd1c08d9f2c78843%7C91c369b51c9e439c989c1867ec606603%7C0%7C1%7C637807761074361969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=7vwXkr2GGQmnW6%2B7S05Uaz%2BzbvGG6fTc3kU6G4zxiig%3D&reserved=0> and using the snmp() destination option.
The following is included in my syslog-ng.conf file as part of destination –

destination d_snmpv2c{
        trap-obj('.', 'Objectid', '.')
        snmp-obj('.', 'Octetstring', 'Test SNMP trap')
        snmp-obj('.', 'Octetstring', 'admin')
        snmp-obj('.', 'Ipaddress', '')

But syslog-ng service/daemon is not starting & pointing error at snmp(). Can you please help on this?
FYI - I am using RHEL7.

Shivani Maurya

More information about the syslog-ng mailing list