Graylog2 / graylog-plugin-integrations

A collection of open source Graylog integrations that will be released together.
Other
14 stars 14 forks source link

Clean up integrations guice config for Forwarder #675

Closed waab76 closed 3 years ago

waab76 commented 3 years ago

Enterprise Integrations has separate Guice configurations for Forwarder and non-Forwarder use cases. In the 4.0 release, some new Integrations plugins do not work in the Forwarder and thus we need a similar Guice split in Integrations. We should also double-check components in Enterprise Integrations.

Input Conditions

Acceptance Criteria

Tasks

malcyon commented 3 years ago

I'm still seeing Guice errors when I try to run the forwarder with the integrations plugin.

I followed the instructions here to install the forwarder on a clean VM:

https://github.com/Graylog2/graylog-plugin-cloud/wiki/Forwarder#forwarder-operating-system-packages

Below are the logs from trying to start the service. Ignore the parts at the beginning where I didn't have Java installed yet.

service.log forwarder.log

If I remove the integrations plugin from the plugins folder, it starts just fine.

This is from a build this morning:

https://jenkins.ci.torch.sh/job/Release-Jobs/job/Graylog-Forwarder-Package-Build/115/console

danotorrey commented 3 years ago

@juju2112 I believe the backport of fix should fix this issue https://github.com/Graylog2/graylog-plugin-integrations/pull/693 since it puts the change on the cloud-4.0 branch. Can you please test once more after it is merged?

malcyon commented 3 years ago

@danotorrey Ah! I missed that. Okay, I'll check again once it's merged.

malcyon commented 3 years ago

@danotorrey I have the manifest using the 4.0 branch for this. Should I change it to cloud-4.0?

https://github.com/Graylog2/graylog-project-internal/blob/master/manifests/cloud/cloud-forwarder.json#L22-L23

danotorrey commented 3 years ago

@danotorrey I have the manifest using the 4.0 branch for this. Should I change it to cloud-4.0?

@juju2112 Yes, that should resolve it. cloud-4.0 should be used for both graylog-plugin-integrations and graylog-plugin-enterprise-integrations

Whenever the core devs create a new cloud-4.0 branch, we'll need to remember to update this manifest too.

Question: Should the manifest also have the -4.0 extension in the file name like the existing cloud-4.0.json manifest?

malcyon commented 3 years ago

Yeah, I can update that.

On Tue, Jan 5, 2021 at 2:12 AM Dan Torrey notifications@github.com wrote:

@danotorrey https://github.com/danotorrey I have the manifest using the 4.0 branch for this. Should I change it to cloud-4.0?

@juju2112 https://github.com/juju2112 Yes, that should resolve it. cloud-4.0 should be used for both graylog-plugin-integrations and graylog-plugin-enterprise-integrations

Whenever the core devs create a new cloud-4.0 branch, we'll need to remember to update this manifest too.

Question: Should the manifest also have the -4.0 extension in the file name like the existing cloud-4.0.json https://github.com/Graylog2/graylog-project-internal/blob/master/manifests/cloud/cloud-4.0.json manifest?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Graylog2/graylog-plugin-integrations/issues/675#issuecomment-754478649, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHAYT2PRPCCJC6XGPUFYVDSYLCV7ANCNFSM4UVODHSA .

malcyon commented 3 years ago

I cut a new release of the forwarder for the 4.0 branch, tested it on a fresh VM, and it starts up just fine.

malcyon commented 3 years ago

@danotorrey I also updated the graylog-forwarder docker image.

danotorrey commented 3 years ago

Great news. Thanks @juju2112