Filebeat custom plugin

hi there, I'm trying to compile myself filebeat after adding a custom http output plugin: I've followed

and then I've added a new folder with my pluing into
src/github.com/elastic/beats/libbeat

now I can compile filebeat, but when it runs the new output plugin is not found (Exiting: error initializing publisher: output type http undefined).

The init() method of my plugin is not called.

What am I missing? Do I need to declare the new plugin somewhere?

The plugin is found if I import it in filebeat main.go, but how can I avoid that? How can I get the same behavior of standard output plugins (ex. elasticsearch)?

ok, I got it, the import needs to be added in the following file

github.com/elastic/beats/libbeat/publisher/includes/includes.go

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.