Closed joschi closed 6 years ago
@joschi What is your suggestion? :smiley:
@bernd It would be fine to create these data adapters if they wouldn't pull data immediately. No idea if the data adapter interface and implementation allows to do that.
I agree. Can we use this part of System/Configurations do enable/disable?
For now I'll use the flags in System configuration for those adapters/tables that actively refresh something. The others are fine, because they will trigger external requests only when they are being used explicitly.
In the case when they are disabled, the adapters will throw an exception during their start, cause the UI to display a warning icon and message on the overview pages.
The Threat Intelligence plugin creates a battery of data adapters which access remote servers which might not be possible or might not be wanted at all.
https://github.com/Graylog2/graylog-plugin-threatintel/blob/e0e4444bff479922f5f87252e89d511231c28dbe/src/main/java/org/graylog/plugins/threatintel/ThreatIntelPluginConfiguration.java#L52-L59
https://github.com/Graylog2/graylog-plugin-threatintel/blob/e0e4444bff479922f5f87252e89d511231c28dbe/src/main/java/org/graylog/plugins/threatintel/migrations/V20170815111700_CreateThreatIntelLookupTables.java#L54-L58
https://github.com/Graylog2/graylog-plugin-threatintel/blob/e0e4444bff479922f5f87252e89d511231c28dbe/src/main/resources/org/graylog/plugins/threatintel/migrations/V20170815111700_CreateThreatIntelLookupTables-content_pack.json
Errors on my development machine after a fresh installation with no manual interaction: