syslog-ng

What is the reason of syslog-ng error: "destination plugin http not found"?


Here is part of my syslog-ng.conf file (with some exclusions):

destination d_elastic_docker {
    http(url("http://192.168.122.79:9200/_bulk")
        method("POST")
    );
};

I've got the following message from syslog-ng -v:

Error parsing destination, destination plugin http not found in /etc/syslog-ng/conf.d/docker-journal-elastic.conf at line 31, column 5:
                                                  included from /etc/syslog-ng/syslog-ng.conf line 162, column 1

    http(url("http://192.168.122.79:9200/_bulk")
    ^^^^

Where is my problem?


Solution

  • The http() plugin is missing. Make sure you installed the appropriate package (for example, on Debian/Ubuntu: syslog-ng-mod-http), or use the --enable-http configure option if you compiled syslog-ng from source.