KongZ / graylog-plugin-slack-notification

Graylog Slack Plugin
Apache License 2.0
9 stars 4 forks source link

4.1 with new id #24

Closed KongZ closed 3 years ago

KongZ commented 3 years ago

Since Graylog 4.1 was released with a built-in Slack integration with same ID slack-notification-v1 with this plugin. So I have decided to rename this plugin ID to graylog-plugin-slack-notification

The error showing on Graylog 4.1 when you installing the plugin

1) [Guice/DuplicateMapKey]: Duplicate key "slack-notification-v1" found in Map<String, EventNotification$Factory>.

You need to run the following command on Mongodb before installing a new plugin in order to migrate current configuration to a new plugin version

graylog:PRIMARY> use graylog
graylog:PRIMARY> db.auth('graylog', 'your-graylog-mongodb-password');
graylog:PRIMARY> db.event_notifications.updateMany({"config.type":"slack-notification-v1"},{$set: { "config.type": "graylog-plugin-slack-notification"}})