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

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

这是我的 syslog-ng.conf 文件的一部分(有一些例外):

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

我从 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")
    ^^^^

我的问题在哪里?

缺少 http() 插件。确保安装了适当的包(例如,在 Debian/Ubuntu 上:syslog-ng-mod-http),或者如果您从源代码编译 syslog-ng,则使用 --enable-http 配置选项。